statistics program for a site

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!

Moderator: General Moderators

Post Reply
swisseuro
Forum Newbie
Posts: 1
Joined: Fri Aug 25, 2006 2:59 pm

statistics program for a site

Post by swisseuro »

Hi there guys i come here to get some help about the design for some statistics

what i want to do is the following, get stats about certain paramters. I have a promotion going and certain people sign up for events, they can add info like who pointed them here. Now my problem is not getting these values into a DB its more how i deal with them. example

I have a click counter: now i want to make stats for that per hour so all the info is safed in the DB now after like a day should i run a script wich consolidates all that info into a new table? or into a file? or how would i go about things like that.

Other problems how can i display these stats as a diagram. please help me here a little on table design and so on.

Thanks a lot
jabbaonthedais
Forum Contributor
Posts: 127
Joined: Wed Aug 18, 2004 12:08 pm

Post by jabbaonthedais »

Are you saying you want to track views and clicks of a link/banner? Something like that? You could write a simple one... all the data would be stored in your database (clicks per hour, etc.) and you could have a cron job add them at the end of the day and put the results in another table (so you have hourly breakdown for today, but daily breakdown for history). Check out http://phpadsnew.com/ and see if thats what you're talking about.
Post Reply