note 18689 added to function.mysql-result

From: Date: Thu, 31 Jan 2002 16:33:08 +0000
Subject: note 18689 added to function.mysql-result
Groups: php.notes 
Request: Send a blank email to php-notes+get-26095@lists.php.net to get a copy of this message
Dont forget you can always use count(*) with mysql_fetch_array() using good SQL querys.. $result = mysql_query("SELECT user,count(*) as count from users from screenshots group by user") or die(mysql_error()); $row = mysql_fetch_array($result); $row[count] would be your count of $row[user] -- http://www.php.net/manual/en/function.mysql-result.php http://master.php.net/manage/user-notes.php?action=edit+18689 http://master.php.net/manage/user-notes.php?action=delete+18689 http://master.php.net/manage/user-notes.php?action=reject+18689

« previous php.notes (#26095) next »