Hiyas I keep getting this error:
You have an error in your SQL syntax near 'WHERE ID='2'' at line 7
with this code:
<?php
include("dbconnect.php");
include("acheck.php");
$sql = "UPDATE news SET
ID='$ID',
user='$user',
date='$date',
title='$title',
post='$post'
WHERE ID='$ID'";
if ($result = mysql_query($sql)) {
include ('head.php');
include ('banner.php');
include ('lmenu.php');
echo "<TABLE BORDER='0' WIDTH='70%' CELLPADDING='6' CELLSPACING='2' ALIGN='left'>";
echo "<TR><TH WIDTH='100%' ALIGN='left'>";
echo "<font color='#DEB887'>News Updated - Season 3</font><br><HR><BR>";
echo "Your changes have been saved<br><BR>";
echo "<a href=index.php>Back to the Main Page</a>";
echo "</TH></TR></TABLE>";
}
else {
die(mysql_error());
}
?>