Advertisement
Guest User

Untitled

a guest
Jun 19th, 2017
204
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.43 KB | None | 0 0
  1. <?php
  2. $ip = $_GET['votingip'];
  3. $uid = $_GET['custom'];
  4. $servername = "localhost";
  5. $username = "username";
  6. $password = "123456";
  7. $dbname = "cq";
  8. $conn = new mysqli($servername, $username, $password, $dbname);
  9.  
  10. if ($conn->connect_error) {
  11. die("Connection failed: " . $conn->connect_error);
  12. }
  13.  
  14. $sql = "SELECT * FROM votes WHERE IP='".$ip."'";
  15.  
  16. /*
  17. Convert this to php m3 nafskom :))
  18. https://pastebin.com/92LkjKBX
  19. */
  20.  
  21. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement