fork download
  1. <?php
  2. include 'connection.php';
  3. if(isset($_GET['deleteid'])){
  4. $id=$_GET['deleteid'];
  5.  
  6. $sql = "delete from register where nationalid=$id";
  7. $result=mysqli_query($con,$sql);
  8. if($result){
  9. echo "Deleted successfully";
  10. }else{
  11. die(mysqli_error($con));
  12. }
  13. }
  14.  
  15. ?>
Success #stdin #stdout #stderr 0.02s 26288KB
stdin
Standard input is empty
stdout
Standard output is empty
stderr
PHP Warning:  include(connection.php): failed to open stream: No such file or directory in /home/NaxIhc/prog.php on line 2
PHP Warning:  include(): Failed opening 'connection.php' for inclusion (include_path='.:/usr/share/php') in /home/NaxIhc/prog.php on line 2