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 © 2024. All Rights Reserved.
Join Our Discord Channel
Top

New Year's Special Discount

"Startup Lifetime" and "Professional Lifetime" licenses are 30% off!

Coupon Code:
HAPPYYEARS30 Copied!
Discount Rate 30%
Expiration Date December 31, 2024