$getinfo = mysql_query("SELECT * FROM table"); while($info = mysql_fetch_array($getinfo)) { print "$info[id] | $info[name] | $info[image]<br>"; }