Advertisement
Guest User

Untitled

a guest
Jun 18th, 2017
129
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.39 KB | None | 0 0
  1. <?php
  2. $username="acc";
  3. $password="pw";
  4. $database="arr9gan7";
  5.  
  6. $name= $_GET["name"];
  7. $votes= $_GET["votes"];
  8.  
  9. $con = mysql_connect("localhost", $username, $password);
  10. if (!$con)
  11. {
  12. die('Could not connect: ' . mysql_error());
  13. }
  14.  
  15. mysql_select_db($database, $con);
  16.  
  17. mysql_query("UPDATE statistik SET votes = $votes
  18. WHERE name = $name");
  19.  
  20. echo("hehe");
  21.  
  22. mysql_close($con);
  23. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement