if ($_POST) {$content = stripslashes($_POST['content']);
$by = $_SESSION['exp_user']['username'];
$dt = date("F j, Y, g:i a");
mysql_query("UPDATE tbl_intmsg SET time = ".$dt.", by = ".$by." AND content = ".$content."") or die(mysql_error());
For which I recieve error:
You have an error in your SQL syntax; check the manual
that corresponds to your MySQL server version for the
right syntax to use near ’26, 2009, 2:28 pm, by =
shamil.nunhuck AND content =
Test message!
‘ at line 1
Any ideas?
Ah scrap that, here’s the answer: