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

errorMsg; ?>

News Entry


"; echo ""; } } ?>

News View

".$_REQUEST['msg']."

"; } ?>
getTable('news','news_id desc'); if($res){ $i=1; foreach($res as $news_data){ ?>
# Sr. No. Title News Description Image Date Action
Edit    Delete