method rselectAll documentation in bbn\Db\Languages\Sql
Return table's rows as an array of indexed arrays.
Example
X::dump($db->rselectAll("tab_users", ["id", "name", "surname"], [["id", ">", 1]], ["id" => "ASC"], 2));
/*
(array) [
[
"id" => 2,
"name" => "John",
"surname" => "Smith",
],
[
"id" => 3,
"name" => "Thomas",
"surname" => "Jones",
]
]
function($table, $fields = [], array $where = [], array $order = [], $limit = 0, $start = 0)
{
if ($r = $this->_exec(...$this->_add_kind(\func_get_args()))) {
if (method_exists($r, 'getRows')) {
return $r->getRows();
}
$this->log('ERROR IN RSELECT_ALL', $r);
}
return [];
}
Return table's rows as an array of indexed arrays. BBN is a suite of PHP and JS libraries and VueJS components - all open-source! bbn.io, build applications, the quick way
This website uses cookies to ensure you get the best experience on our website.
© 2011-2023
BBN Solutions