Developer Center

Number of Rows

It is used to get the total number of rows of a table in the database.

rowCounter

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."";
?>
 
DELETE Exec and Query

Do you have any questions?

Feel free to contact us
Contact Us
Copyright © 2021. All Rights Reserved.
Join Our Discord Channel
Top