New Zenner
- Join Date:
- Sep 2007
- Posts:
- 14
- Plugin Contributions:
- 0
php code for counting records (mysql_num_rows) -->
I'm coding a little admin mod and I'm having some trouble.. thought maybe a guru here could help.
I'm not that used to dealing with classes, but here's a simplified example of my code
$sql = "SOME SQL STATEMENT";
$get_list = $db->Execute($sql);
if($get_list->RecordCount() > 0) {
while(!$get_list->EOF) {
// do something
$get_list->MoveNext();
}
} else {
echo "no records were found";
}
I get an error that RecordCount() is an undefined function... but I'm pretty sure that's the function in the query_factory.php file
Should I use another function to get the number of rows returned with my query?