Quote:
Originally Posted by Dave It's not bad, the graph is displayed quite nicely only thing I would add is possible a background and then add a box around each browser. Also providing some information about the backend would be beneficial as we can help you improve and make it more efficient. |
The backend is simple. It uses a function I found to discover the user's browser and stores their md5'd IP, browser, and browser version into the 'stats' table.
To display the information, it does a query to select all information from every row where name = "browser name". The count is added to a total, where it is then divided into percentages. The rest you should be able to figure out.
Maybe I am not understanding what you said correctly though, because I don't see any other way to accomplish this, other than using a file to read/write from rather than MySQL.
Quote:
Originally Posted by Cheater912 Store the IP instead of a MD5. |
I know I wouldn't like my IP to be stored by someone, so I just assumed that others felt the same way. I don't see any real reason to store the actual IP, either, since I am not using it for anything besides preventing duplicates.
Any reason you are suggesting this?
Quote:
Originally Posted by sgt frankieboy Really? sorry but that sounded funny.
It is looking nice though
Are you using PDO for the MySQL? |
Nope, just plain old MySQL queries.
Quote:
Originally Posted by UnderCoverUZI In terms of design I like it. But why is the 1% and 3% the same size lol |
The div needs to be a certain width to be able to fit the percentage. It is more distinguished when the percentages are higher -- which they most likely will be. Poor Internet Explorer.