myrow mysql_fetch_assoc res row_num mysql_num_rows res while row_num t

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
$myrow = mysql_fetch_assoc($res);
$row_num = mysql_num_rows($res);
$c = 0;
while($row_num < 6){
$test = $myrow(['item']);
$c++;
}
echo $test;