note 18689 deleted from function.mysql-result by didou
| From: | didou@php.net | Date: | Wed, 09 Jul 2003 15:21:24 +0000 |
| Subject: | note 18689 deleted from function.mysql-result by didou | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-51791@lists.php.net to get a copy of this message | ||
Note Submitter: rob@clara.net
----
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]