Hey,
I wrote this, and am getting this error:
Error adding submitted joke: You have an error in your SQL syntax near 'WHERE ID=' at line 6
Here is the code:
$dtime = date("l dS of F Y h:i:s A");
Here is the update
$sql = "UPDATE news SET
data= '$news',
author='$name',
email= '$email',
mytime='$dtime',
WHERE ID=".$number;
It is pointing towards the where id part, but I have never had a problem with that, been using it forever?
The row is:
Name Type Null
mytime varchar(255) Yes
Default
NULL