I am building a 'news' database and have all the forms coded, and the naviagtion. My add script is working just fine to add news to the database, and I can pull that information into a form again to edit, but my script to update the edited news is failing. Here it is:
<?
include('CONNECT.php');
$query = "UPDATE tc_news SET headline='$headline', ";
$query .= "author='$author', ";
$query .= "modify_date=NOW(), body='$body', status='$status', ";
$query .= "WHERE id=$id";
if ( mysql_query($query) ) {
header( "Location: listnews.php?message=News article updated." );
exit();
}
header( "Location: listnews.php?message=Update failed: $query" );
?>
Any suggestions????