Advertisement
Guest User

Untitled

a guest
Dec 20th, 2017
95
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.09 KB | None | 0 0
  1.  
  2.  
  3. <?php
  4.  
  5.  
  6.  
  7. session_start();
  8.  
  9.  
  10. $servername = "localhost";
  11. $username = "jfsdfgsdgsdgsdgsdgdsggsdgsdggsd";
  12. $password = "sdgsdgsdgsdgsdgsdgdsg";
  13.  
  14.  
  15. try {
  16. $conn = new PDO("mysql:host=$servername;dbname=sdhgsdhdsh", $username, $password);
  17. // set the PDO error mode to exception
  18. $conn->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);
  19. echo "Connected successfully";
  20. }
  21. catch(PDOException $e)
  22. {
  23. echo "Connection failed: " . $e->getMessage();
  24. }
  25.  
  26. $id = $_GET["id"];
  27. $old = $_GET["old"];
  28. $amount = $_GET["amount"];
  29. $currency_name = $_GET["currency_name"];
  30. $user_id = $_GET["user_id"];
  31. $payout = $_GET["payout"];
  32. $o_name = $_GET["o_name"];
  33. $sig = $_GET["sig"];
  34.  
  35.  
  36. echo $user_id;
  37.  
  38.  
  39.  
  40. // insert one row
  41. $username = '$user_id';
  42. $value = $payout;
  43.  
  44.  
  45. $stmt = $dbh->prepare("INSERT INTO users (username, robux) VALUES (:username, :robux)");
  46. $stmt->bindParam(':username', $user_id);
  47. $stmt->bindParam(':robux', $value);
  48.  
  49. // insert one row
  50. $name = '$user_id';
  51. $value = $payout;
  52. $stmt->execute();
  53.  
  54.  
  55.  
  56.  
  57. echo 1; //This don't work
  58. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement