$alltags = mysql_query("SELECT * FROM tags WHERE user_id=$id"); while($row1 = mysql_fetch_array($alltags)) { echo $row1['tag_cen']; //i want to echo fields here instead of just tag_cen }