question fuction manipulation
Posted: Tue May 17, 2011 12:01 pm
<?php include ( 'dbconnect.php' ); $query = "SELECT `id` , `name` FROM `users`"; $result = mysql_query ( $query ) or die ("<p class=err>Error - Query failed: ".mysql_error()."</p>"); while($row = mysql_fetch_array( $result ) ) { $players[$row['id']] = $row; } srand(214134); mt_srand(214134); shuffle($players); ?>
I have srand and mt _random controling the shuffle of players.If I change these values to match as they are, with new values that match.My Players will randomly change on my tournament bracket. this is a mthod to keep players that signup finding out a patern of who they would play.
Question could I make this so I could control those number through the webpage, So on the admin page the admin could select the numbers he wanted to gernerate the order list?