I always get this error:
"Error updating joke: 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 '1' at line 1"
There's something about this part of my code that causes that error and I just can't figure out what that is. help please :(
$id = mysql_real_escape_string($_POST['id']); $text = mysql_real_escape_string($_POST['text']); $sql = mysql_query("UPDATE joke SET joketext='$text' WHERE id=$id");