home/amitahospital/public_html/amita_master/gallery.php 0000644 00000021470 14721143126 0017460 0 ustar 00 gallery(); } if(!empty($_POST['mul_del'])) { foreach($_POST['mul_del'] as $code) { $id= $code; $photo_sql= "SELECT gal_image FROM gallery WHERE gal_id='".$id."'"; $rs= mysqli_query($obj->mysqli,$photo_sql); $photo= mysqli_fetch_assoc($rs); if(is_file('upload/gallery/'.$photo['gal_image'])) { unlink('upload/gallery/'.$photo['gal_image']); } } $col= 'gal_id'; $table= 'gallery'; $page= 'gallery.php'; $img= "gal_image"; $path= "upload/gallery/"; $obj->delete_multiple($col,$table,$page,$path); } if(!empty($_REQUEST['edit'])) { $val= $_REQUEST['edit']; $row= $obj->getRecord('gallery','gal_id',$val); } ?>