Published in: PHP
Only because I have forgotten this code 3 times today...
If there is a better/faster way, please comment.
<?php // connect to the database first dbconnection(); // query // results echo $rows; ?>
Comments
Subscribe to comments
You need to login to post a comment.

Maybe you want to do something like:
SELECT COUNT(
id) ASCNTFROMtableWHERE conditionCNT will then have the count as it should be. Much faster than your solution. Waaaaaay faster.