RE: [PHP] Why won't this work?
| From: | joakim dot andersson at cybercom dot se | Date: | Fri, 19 Jul 2002 09:33:32 +0000 |
| Subject: | RE: [PHP] Why won't this work? | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-108471@lists.php.net to get a copy of this message | ||
> From: René Moonen [mailto:rene.moonen@oberthur.nl]
> Sent: Friday, July 19, 2002 11:01 AM
> $result = mysql_query("SELECT COUNT(DISTINCT IP) AS ips FROM ma_counter");
You _might_ need to add "GROUP BY ip" (without quotes) to the end of that
query.
> Disclaimer: code not tested. You might want to check the MySQL manual
Still not tested :-)
Regards
Joakim Andersson