D7net
Home
Console
Upload
information
Create File
Create Folder
About
Tools
:
/
home
/
ipuco
/
public_html
/
superadmin
/
Filename :
staff-delete.php
back
Copy
<?php ob_start(); session_start(); include('include/connection.php'); $status1 =$_REQUEST['status1']; $select=mysqli_query($conn,"SELECT * FROM tbl_staff where staff_id='$status1'"); $result=mysqli_fetch_array($select); unlink('upload/'.$result['img1']); // sending query mysqli_query($conn, "DELETE FROM tbl_staff where staff_id='$status1'") or die(mysql_error()); header("Location: list-of-staff.php"); ?>