What to do next?

EDIT: I have moved from a JS to PHP random number query. I am stuck now, however, as to how to make each of the numbers that are generated into a variable. This would be used so that I may use each number to draw (from an auto-incremented ID) the name etc from a database which corresponds to the random number.If that's not quite sure, which I'm not sure it is, I have a database of $num_rows people in it, and this generator creates 6 numbers between 1 and $numrows. The number generated (which I am looking to assign as a variable) would then be used to match up with an ID in an SQL table so that I may draw other information from that row.\[code\] for($i = 0; $i<6; $i++)echo rand(1, $num_rows) . "<br>";\[/code\]
 
Back
Top