I need help with looping within another loop.
$num = mysql_num_fields($result);
while($row = mysql_fetch_array($result)){
for($i=0; $i<$num; $i++){
echo $row[$i] . "\t";
}
}
The FOR loop only prints the value for $row[0] and exits.
My question is, how can I get the FOR loop to run completely for every iteration of the WHILE loop?
tia,
Richie.