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