query($sql2); while($row = $result -> fetch_array()) { echo "".$row[0]."".$row[1]."".$row[2].""; } ?>