Advertisement
Guest User

Untitled

a guest
Aug 16th, 2017
59
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.83 KB | None | 0 0
  1. A session had already been started - ignoring session_start() in /home/delete.php on line 2
  2. PHP Notice: Constant DB_SERVER already defined in /home/db.php on line 4
  3. PHP Notice: Constant DB_USERNAME already defined in /home/db.php on line 5
  4. PHP Notice: Constant DB_PASSWORD already defined in /home/db.php on line 6
  5. PHP Notice: Constant DB_DATABASE already defined in /home/db.php on line 7
  6. Undefined index: id in /home/delete.php on line 7
  7.  
  8. <?php
  9. session_start();
  10. include("db.php"); //Establishing connection with our database
  11.  
  12. $dltsuccess="";
  13.  
  14. $DltQuery="DELETE from properties where id=".$_REQUEST['id'];
  15. $result=mysqli_query($db, $DltQuery);
  16.  
  17. if($result)
  18. {
  19.  
  20. echo "Record Deleted Successfully";
  21. echo "<script>setTimeout("location.href = 'admin.php';",300);</script>";
  22. $dltsuccess= "Record Deleted Successfully";
  23. }
  24. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement