News | Add "; $header_button_link= 'add_news.php'; include 'includes/header.php'; include 'includes/side_bar.php'; include 'includes/center_start.php'; if(isset($_POST['save'])) { # if($_POST['view_news'] != NULL) # { mysql_query("UPDATE news SET status = 0") or die(mysql_error()); foreach($_POST['view_news'] as $checked_news) { mysql_query("UPDATE news SET status = 1 WHERE id = '".$checked_news."'") or die(mysql_error()); } header("Location:news.php"); # } # else # { # $status_err = "Select at least one checkbox."; # } } ?>
status() == 1) { ?>
Sr. No Title
 
title();?> title();?>