take a look at the piece of code below:
from what i read usually, the expression on the second line should read $_POST['joketext'] but the only way i could make the whole statement work was to take the quotes off 'joketext'. so is there any kind of trick to keeping those quotes or is it perfectly fine to omit the quotes around 'joketext' in this particular case? --------------------------------------------------
Goals are dreams with deadlines
-------------------------------------
Code:
$sql = "INSERT INTO Jokes SET
JokeText = '$_POST[joketext]',
JokeDate = CURDATE()";
Goals are dreams with deadlines
-------------------------------------