$result = mysql_query("SELECT COUNT(*) FROM table WHERE age > '65'");
if ( $row = mysql_fetch_array($result)){
$oldPeople = $row[0];
}
PHP example of using COUNT(*) in MySQL
(1 post) (1 voice)-
Posted 1 year ago #
Reply
You must log in to post.