sub_department(); } if(!empty($_POST['mul_del'])) { foreach($_POST['mul_del'] as $code) { $id= $code; $photo_sql= "SELECT dep_img FROM sub_department WHERE sub_dep_id='".$id."'"; $rs= mysqli_query($obj->mysqli,$photo_sql); $photo= mysqli_fetch_assoc($rs); if(is_file('upload/sub_depart/'.$photo['dep_img'])) { unlink('upload/sub_depart/'.$photo['dep_img']); } } if(!empty($_POST['mul_del'])) { $col= 'sub_dep_id'; $table= 'sub_department'; $page= 'sub_department.php'; $img= "dep_img"; $path= "upload/sub_depart/"; $obj->delete_multiple($col,$table,$page,$path); } } if(!empty($_REQUEST['edit'])) { $val= $_REQUEST['edit']; $row= $obj->getRecord('sub_department','sub_dep_id',$val); } ?>