Advertisement
TempusMoon

Untitled

May 1st, 2016
108
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.66 KB | None | 0 0
  1. <?php
  2.  
  3. //Connect to the database
  4. $host = "127.0.0.1";
  5. $user = "grubsteak"; //Your Cloud 9 username
  6. $pass = ""; //Remember, there is NO password by default!
  7. $db = "bans"; //Your database name you want to connect to
  8. $port = 3306; //The port #. It is always 3306
  9.  
  10. $connection = mysqli_connect($host, $user, $pass, $db, $port)or die(mysql_error());
  11.  
  12.  
  13. if($_GET["id"])
  14. {
  15. $query = "DELETE FROM banned WHERE id=" . $_GET["id"];
  16. mysqli_query($connection, $query);
  17. }
  18. else
  19. {
  20. echo "error";
  21. }
  22.  
  23. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement