$query = mysql_query("SELECT * FROM status"); while(@($row = mysql_fetch_array($query))) { echo $row['name']; }