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); } ?>
errorMsg)){ ?>

errorMsg; ?>

Sub Department Entry


"; echo ""; } } ?>

Sub Department View

".$_REQUEST['msg']."

"; } ?>
getTable('sub_department','sub_dep_id desc'); if($res){ $i=1; foreach($res as $depart_data) { $sql= "SELECT * FROM department WHERE department_id='".$depart_data['department_id']."'"; $rs= mysqli_query($obj->mysqli,$sql); if($rs) { foreach($rs as $data) { ?>
# Sr. No. Department Sub Dept. Desc. Image Date Action
Edit    Delete