method getOne documentation in bbn\Db\Languages\Sql

Executes the given query with given vars, and extracts the first cell's result.

Example

X::dump($db->getOne("SELECT name FROM table_users WHERE id>?", 138)); // (string) John function() { /** @var \bbn\Db\Query $r */ if ($r = $this->query(...\func_get_args())) { return $r->fetchColumn(0); } return false; }

Executes the given query with given vars, and extracts the first cell's result. 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.