Function db_fetchResult
Perform a query on the database and return the first result row as object
It adds the LIMIT 1
clause if the query has no record limit
This is useful for one-row fetching. No need explicit db_query()
call as this invokes it internally.
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> |
object
|
The result object |