$myrow[1]"; if ($cont<$n_rows) echo " , "; if($cont>=5) {echo ""; $cont=0; } $cont++; } mysql_free_result($result); ?>