Page 1 of 1

Huge Script - Help!

Posted: Wed Apr 21, 2004 3:40 pm
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.

Posted: Wed Apr 21, 2004 3:48 pm
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]()...