Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $dbusername = "root"; // enter database username, I used "arduino" in step 2.2
- $dbpassword = "qonita84"; // enter database password, I used "arduinotest" in step 2.2
- $server = "localhost"; // IMPORTANT: if you are using XAMPP enter "localhost", but if you have an online website enter its address, ie."www.yourwebsite.com"
- // Connect to your database
- $dbconnect = mysqli_connect($server, $dbusername, $dbpassword);
- $dbselect = mysql_select_db("LTKA",$dbconnect);
- // Prepare the SQL statement
- $sql = "INSERT INT LTKA.angkot (RFID_ID, Saldo, KM) VALUES ('".$_GET["ID"]."','".$_GET["sisa"]."','".$_GET["naik"]."')";
- // Execute SQL statement
- mysql_query($sql);
- ?>
- localhost is currently unable to handle this request.
- HTTP ERROR 500
- <?php
- phpinfo();
- >?
Add Comment
Please, Sign In to add comment