Advertisement
Guest User

Untitled

a guest
May 20th, 2018
175
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.48 KB | None | 0 0
  1. <?php
  2. require('variablesremove.php');
  3. $user = "#";
  4. $password = "##";
  5. $host = "localhost";
  6. $database= "#";
  7. $connection= mysqli_connect ($host, $user, $password);
  8. if (!$connection)
  9. {
  10. die ('Could not connect:' . mysql_error());
  11. }
  12. mysqli_select_db($database, $connection);
  13.  
  14. $deleterow = "DELETE FROM licenses WHERE serialNumber='$serialNumber'";
  15.  
  16. if($deleterow !== FALSE)
  17. {
  18. echo("The row has been deleted.");
  19. }else{
  20. echo("The row has not been deleted.");
  21. }
  22.  
  23. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement