Get Started

Where Syntax

Query

Transaction

Advanced

PDO object

Debug

Information

version: 1.1.3

count

Counts the number of rows

count($table, $where)
count($table, $join, $column, $where)
Return: [number] The number of rows.
The type of returned data is number.
$count = $database->count("account", [
	"gender" => "female"
]);

echo "We have " . $count . " female users.";