Function db_fetch
Perform a query on the database and return the first field value only.
It adds the LIMIT 1
clause if the query has no record limit
This will be useful for COUNT()
, MAX()
, MIN()
queries
Package: PHPLucidFrame\Core
Copyright: Copyright (c), PHPLucidFrame.
License: MIT License This source file is subject to the MIT license that is bundled with this source code in the file LICENSE
Author: Sithu sithu@phplucidframe.com
Located at helpers/db_helper.mysqli.php
Copyright: Copyright (c), PHPLucidFrame.
License: MIT License This source file is subject to the MIT license that is bundled with this source code in the file LICENSE
Author: Sithu sithu@phplucidframe.com
Located at helpers/db_helper.mysqli.php
string |
$sql |
The SQL query string |
array |
$args = array() |
<p>The array of placeholders and their values</p> <pre><code> array( ':placeholder1' => $value1, ':placeholder2' => $value2 ) </code></pre> |
mixed
|
The value of the first field |