Associate
- Joined
- 9 Oct 2006
- Posts
- 1,945
- Location
- Location Location!
As you can see my signature updates, does this using the GD library in PHP. It currently stores a ton of log information in SQL which is nearly 24,000 entries all containing IP, browser, time and referrer.
Im making a stats file, i've got many things such as how many times your IP viewed the signature, total number of unique viewers etc. ( got some very interesting numbers )
I am trying to find the most popular referrer. To do this i currently use a SELECT DISTINCT then loop through every result which takes absolutly ages seeing as its over 1800 queries.
I'm sure this is possible but i can't seem to find it. Need to find which link is most common in the logs table.
Help please
Im making a stats file, i've got many things such as how many times your IP viewed the signature, total number of unique viewers etc. ( got some very interesting numbers )
I am trying to find the most popular referrer. To do this i currently use a SELECT DISTINCT then loop through every result which takes absolutly ages seeing as its over 1800 queries.
I'm sure this is possible but i can't seem to find it. Need to find which link is most common in the logs table.
Help please

Last edited: