Function db_count
Perform a count query on the database and return the count
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 |
$arg1 |
The SQL query string or table name |
string|array |
$arg2 = null |
<p>The field name to count on or the array of placeholders and their values if the first argument is SQL</p> <pre><code> array( ':placeholder1' => $value1, ':placeholder2' => $value2 ) </code></pre> |
string|null |
$arg3 = null |
<p>The field alias if the first argument is table name or the second argument is field name</p> |
integer| |
The result count or QueryBuilder |