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