Hello there,
I would like to ask if anybody knows how to randomize an output of a query
for example
$query = select * from student where stud_id = '$urn';
for ($i < num_results....)
{
$row = $result -> fetch_assoc();
$test = array($row['stud_id'];
shuffle($test);
for ($j = 0 ; $j < num_resutls; $j++)
{
echo $test[$j];
}
...........
it seems that the $row cannot be randomized
thanks