Huge Script - Help!

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
User avatar
SilverMist
Forum Commoner
Posts: 65
Joined: Tue Mar 02, 2004 2:06 pm
Location: Canada
Contact:

Huge Script - Help!

Post by SilverMist »

Okay, so I am doing this HUGE script. What it does is, when someone enters their horse in a race, the races run at a certain time, and a database would pick the winner. I realize this is a huge script, and I am just wondering if anyone had some small stuff they could show me, so I can get an idea of what to build onto.
User avatar
JAM
DevNet Resident
Posts: 2101
Joined: Fri Aug 08, 2003 6:53 pm
Location: Sweden
Contact:

Post by JAM »

ORDER BY RAND() combined with LIMIT is useful for selecting a random sample of a set of row
http://dev.mysql.com/doc/mysql/en/Mathe ... tions.html

But you could do that in plain PHP also using the various function used to randomize 'things', and example being: [php_man]array_rand[/php_man]()...
Post Reply