Number of Rows
It is used to get the total number of rows of a table in the database.
It written as WDB::rowCounter()
It is used after the "BUILD" method.
Returns a value of data type "INT" as the return value.
Sample PHP Code
<?php $query = WDB::select("id")->from("table1"); $total = $query->build(true)->rowCounter(); echo "Total Rows:".$total.""; ?>