Guest User

Untitled

a guest
Nov 21st, 2017
95
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.75 KB | None | 0 0
  1. $dbusername = "root"; // enter database username, I used "arduino" in step 2.2
  2. $dbpassword = "qonita84"; // enter database password, I used "arduinotest" in step 2.2
  3. $server = "localhost"; // IMPORTANT: if you are using XAMPP enter "localhost", but if you have an online website enter its address, ie."www.yourwebsite.com"
  4.  
  5. // Connect to your database
  6.  
  7. $dbconnect = mysqli_connect($server, $dbusername, $dbpassword);
  8. $dbselect = mysql_select_db("LTKA",$dbconnect);
  9.  
  10. // Prepare the SQL statement
  11.  
  12. $sql = "INSERT INT LTKA.angkot (RFID_ID, Saldo, KM) VALUES ('".$_GET["ID"]."','".$_GET["sisa"]."','".$_GET["naik"]."')";
  13.  
  14. // Execute SQL statement
  15.  
  16. mysql_query($sql);
  17.  
  18. ?>
  19.  
  20. localhost is currently unable to handle this request.
  21. HTTP ERROR 500
  22.  
  23. <?php
  24. phpinfo();
  25. >?
Add Comment
Please, Sign In to add comment