query($sql); if ($result->num_rows > 0) { while($row = $result->fetch_assoc()) { echo "
 .$row[
"; } } $conn->close(); ?>