$spisokz = sqlq("SELECT name FROM `items` WHERE type='h'"); while ($row = mysql_fetch_row($spisokz)); { echo $row['name']; };