PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!
I have the following that displays info on browsers used to view a site. How do I change it to calculate the percentage for each type of browser? I need it to show in place of the hardcoded 50%.
How does your database work? It lists the browsers and keeps track of how many hits each get? Or does it track the browser of individual hits?...then what is the HITS column for?
mwong wrote:How does your database work? It lists the browsers and keeps track of how many hits each get? Or does it track the browser of individual hits?...then what is the HITS column for?
There are 3 columns in the table called id, browser & hits. ID is set to autoincrement, browser stores the name of the browser and hits has 1 addedd each time that browser is used.