while($row = mysql_fetch_array($result)) { echo ""; echo $row['name'] .""; echo ""; $varcount++; }