dbcount
Quote
dbcount ( string $field, string $table, [ string $conditions] )
Parameters
field
The fields you want to count in the database
table
The table you want to count from
conditions
The conditions you want to the results to match
Return Values
This function will return the number of rows in the $table matching the $conditions if any.
This function will return false if there are no rows or on failure.
Example
Code
<?php
echo dbcount("(field1)", "table1", "field1='this'");
?>
Changelog
7.01.00 - Added query count
7.00.00 - Removed db_prefix from the $table in order to use the multisite feature in PHPFusion 8
Note
This function will return false if the query fails or if there are no rows to count.