connect_error) { die("Connection failed: " . $conn->connect_error); } // Query to retrieve data from the table $sql = "SELECT * FROM historic"; $result = $conn->query($sql); ?> MySQL Table Visualization

Table Content

num_rows > 0) { while($row = $result->fetch_assoc()) { echo ""; echo ""; echo ""; echo ""; // Add more columns if needed echo ""; } } else { echo "0 results"; } ?>
ID Temps Pluja
".$row["id"]."".$row["TempOut"]."".$row["Rain"]."
close(); ?>