method getRow documentation in bbn\Db\Languages\Sql

Return the first row resulting from the query as an array indexed with the fields' name.

Example

X::dump($db->getRow("SELECT id, name FROM table_users WHERE id > ? ", 2));; /* (array)[ "id" => 3, "name" => "thomas", ] function() { if ($r = $this->query(...\func_get_args())) { return $r->getRow(); } return null; }

Return the first row resulting from the query as an array indexed with the fields' name. 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.