![]() |
Help with a PHP-MySQL Query
Hi,
I need help to make these two queries as 1 query: PHP Code:
Thanks in advance! |
Yeah, I'm not sure why you have the two in the first place. The first one is only missing the count for it; the group by has no usage without an aggregate such as count. The only thing I can think of what you meant that to do was to query for DISTINCT ip.
Code:
SELECT ip, count(*) AS total_visits |
| All times are GMT +1. The time now is 10:46 AM. |
Powered by vBulletin®
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.