SENSOR DATA

connect_error) { die("Connection failed: " . $conn->connect_error); } $sql = "SELECT id, Tank1, Tank2, rainwater, Turbidity,pH_sensor, reading_time FROM sensordata ORDER BY id DESC"; /*select items to display from the sensordata table in the data base*/ echo ''; if ($result = $conn->query($sql)) { while ($row = $result->fetch_assoc()) { $row_Tank1 = $row["Tank1"]; $row_Tank2 = $row["Tank2"]; $row_Turbidity = $row["Turbidity"]; $row_pH_sensor = $row["pH_sensor"]; $row_reading_time = $row["reading_time"]; echo ''; } $result->free(); } $conn->close(); ?>
Storage Tank PotashAlum Tank Turbidity pH_sensor Data Time
' . $row_Tank1 . ' ' . $row_Tank2 . ' ' . $row_Turbidity . ' ' . $row_pH_sensor . ' ' . $row_reading_time . '