\r\n"; //echo "End date = ".$strEndDate."
\r\n"; $con=mysql_connect($servername,$username,$password) or die("Failed to connect with database!!!!"); mysql_select_db($dbname, $con); ?> SEPTIC.ESPICH.COM

SEPTIC.ESPICH.COM

Rasberry PI 3 powered septic tank dosing chamber level monitor with dosing pump control and Web Server.

connect_error) { die("Connection failed: " . $conn->connect_error); } $sql = "call sp_GetStats;"; $result = $conn->query($sql); if ($result->num_rows > 0) { // output data of each row while($row = $result->fetch_assoc()) { echo "\r\n"; echo "\r\n"; echo "\r\n"; echo "\r\n"; echo "\r\n"; echo "\r\n"; } } else { echo "0 results"; } echo "
Current Local Time".$row["datNow"]."
Time of Last Reading".$row["datLastLogged"]."
Last Distance from Sensor (cm)".$row["LastDistance"]."
Current Pump Status".$row["PumpStatus"]." at ".$row["LastPumpReading"]."
Last Pump Duration HH:MM:SS".$row["LastPumpDuration"]."
Last Pump Start Time".$row["LastPumpStart"]."
\r\n"; echo "
\r\n"; ?>