This is my code for updating. it displays "Done" but if you check the database, the fields are not updating.
What's wrong with my code?
<?php include('include/dbconnect.php');
$page = $_POST['newpage'];
$title = $_POST['newtitle'];
$content = $_POST['newcontent'];
$track_no = $_POST['track_no'];
$done = "UPDATE contents SET page = '$page',title = '$title', content = '$content', modified = 'CURDATE()'WHERE track_no = '$track_no' ";
$result = mysql_query($done) or die(mysql_error());
if (!$result)
{
print "Something is wrong!";
}
else{
print "Done!";
}
?>