Re: [PHP] Most popular per month

2008-07-13 Thread Ryan S
Thanks Brady, Wolf, Bernhard! Will write back if i hit a wall but I think your explanations and links should take me all the way. Cheers! Ryan -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Most popular per month

2008-07-12 Thread Ryan S
Hey! Thanks for replying! snip .. . $perc50=(img50 int)/$total; You can do it per day, per month, per year, per 28 days, per PMS cycle, per anything you want provided you have the data to do it. /snip :) this is the part where i am a bit confused actually, can you give me one or two

Re: [PHP] Most popular per month

2008-07-12 Thread Wolf
snip .. . $perc50=(img50 int)/$total; You can do it per day, per month, per year, per 28 days, per PMS cycle, per anything you want provided you have the data to do it. /snip :) this is the part where i am a bit confused actually, can you give me one or two examples and i'll work from there?

Re: [PHP] Most popular per month

2008-07-12 Thread Brady Mitchell
On Jul 11, 2008, at 555PM, Ryan S wrote: before the next days counter starts this data is stored in a table which has a simple structure like this img_id1 int,img_id2 int (etc till img_id10) That sounds like a painful db structure to deal with if you want to add more images in the

[PHP] Most popular per month

2008-07-11 Thread Ryan S
Hey! The client has a set of 50 images that keep rotating everyday and when a user clicks one of those images he is taken to that images site, in the background (database) i maintain a counter _for the day_ and then display the top ten images everyday in this format: 1-10 before the next days

Re: [PHP] Most popular per month

2008-07-11 Thread Wolf
Ryan S wrote: Hey! The client has a set of 50 images that keep rotating everyday and when a user clicks one of those images he is taken to that images site, in the background (database) i maintain a counter _for the day_ and then display the top ten images everyday in this format: 1-10