Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- // Connect to MySQL
- $MyUsername = "arduino"; // enter your username for mysql
- $MyPassword = "arduino"; // enter your password for mysql
- $MyHostname = "localhost"; // this is usually "localhost" unless your database resides on a different server
- $dbh = mysql_pconnect($MyHostname , $MyUsername, $MyPassword);
- $selected = mysql_select_db("p1",$dbh);
- // Prepare the SQL statement
- $SQL = "INSERT INTO p1.readings (id, time, laag_tarief, hoog_tarief, huidig_verbruik, gas) VALUES (NULL, NULL, '".$_GET["mEVLT"]."', '".$_GET["mEVHT"]."', '".$_GET["mEAV"]."', '".$_GET["mG"]."')";
- // Execute SQL statement
- mysql_query($SQL);
- // Go to the review_data.php
- //header("Location: review_data.php");
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement