Cron (PHP)

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
riiel
Forum Newbie
Posts: 16
Joined: Sat Apr 25, 2009 3:29 am

Cron (PHP)

Post by riiel »

How i can make jackpot script like there:
Top Men - http://www.ifame.co.uk/best.php?group=M
Top Women - http://www.ifame.co.uk/best.php?group=F

Sorry, my english, Can anybody help me ?
User avatar
califdon
Jack of Zircons
Posts: 4484
Joined: Thu Nov 09, 2006 8:30 pm
Location: California, USA

Re: Cron (PHP)

Post by califdon »

You will have to explain what you want. I doubt that anyone will tell you how to write an entire script. This forum is very useful if you have a specific question or problem, but of no use to answer a broad question like "how to make a script like ..."
riiel
Forum Newbie
Posts: 16
Joined: Sat Apr 25, 2009 3:29 am

Re: Cron (PHP)

Post by riiel »

Sorry about that.
I have in my mysql database this table: day_leaders and there are some rows
id
imgid
imgsr
useri
points
date
sex

Jacpot skript example:
Person of the day
Person of the day will be a user who has been on the top of the chart the most (there are separate charts for men and women). The chart is updated six times per hour and every time it's updated the person on top of the chart will get a certain amout of points to her/his daily score.

The amount of points is equal to the number of users On-line at this moment (you can see the number on the bottom of the first page). The reason is simple - if there's a lot of users then the chart is changing faster and the first place is more valuable. The chart of the day is also changed six time per hour, the last points will be added around 23:53.

In the beginning of a new day the user who obtained the biggest score during last day and was the person of the day, will get jackpot. Certain amount of points are added to her/his account. The Jackpot's size will increase during the day and it's growth is visible at the site in real time. NB! Only one person will get the points - the one who is the person of the day and on top of the chart at 23:59
Post Reply