Advertisement
Guest User

Untitled

a guest
May 28th, 2016
78
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.52 KB | None | 0 0
  1. <?php
  2.  
  3. $con = new COM('ADODB.Connection');
  4. $con->Open("DRIVER={Microsoft Access Driver (*.mdb, *.accdb)}; DBQ=C:\cccc\ccc\LoginDatabase.accdb");
  5.  
  6. $name = $_POST["name"];
  7. $age = $_POST["age"];
  8. $username = $_POST["username"];
  9. $password = $_POST["password"];
  10.  
  11.  
  12. $sql1="INSERT INTO userinfo (name, username, [age], password) VALUES ('$name','$username', '$age', '$password')";
  13.  
  14.  
  15. $rs = $con->Execute($sql1);
  16. echo $result;
  17.  
  18. $response = array();
  19. $response["success"] = true;
  20.  
  21. echo json_encode($response);
  22. ?>
  23.  
  24. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement