a function to count rows in a table
Page 1 of 1
a function to count rows in a table
- Code:
function CountRows($table){
$table = "chats";
$query = "SELECT COUNT(id) FROM `".$table."`
";
$count = mysql_fetch_array(mysql_query($query));
return $count[0];
}
$newcount = CountRows(chats);
Similar topics
» Getting Youtube Sub Count With Linux Mint 18.2 & Social Blade
» MD5 PHP Hash Rainbow Table Generator Script Example
» MD5 PHP Hash Rainbow Table Generator Script Example
Page 1 of 1
Permissions in this forum:
You cannot reply to topics in this forum