View Single Post


Old 04-15-2012   #9 (permalink)
Kuzahara
Regular Member
Kuzahara's Avatar
Join Date: Apr 2012
Posts: 8
Thanks: 1
Default Re: Looking for CnC on web project

Quote:
Originally Posted by Dave View Post
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 View Post
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 View Post
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 View Post
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.
__________________
Beginner/amateur web developer

Last edited by Kuzahara; 04-15-2012 at 01:46 AM.
Kuzahara is offline
Reply With Quote