hey people,
I have a list 4000+ of IP address' and I'm trying to group the IP address' together so I can find the number of unique visitors to my site.
I have:
//Total Unique Hits
$result=mysql_query("SELECT COUNT(*) FROM $TableName GROUP BY IP");
$num=mysql_fetch_row($result);
if ($num[0] != 0) { $totaluniquehits = $num[0]; }
But that returns '2' even though there are more than 2 different IP address' in the database.
Anyone know why that may be?
I'm using version 4.0.27 of MySQL.
Thanks