$tester = "blah blah blah"; echo $tester ."<br>" .$title ."<br>"; $sql = "update tblnews set title=\"$title\" where count=" .$n2e;
The news title and body is loaded into a form for editing. $title is coming in POST data from the submit page.
$n2e is the unique code for each piece of news
The echo statement returns the values exactly as I want them to be:
blah blah blah
However, when I comment out the echo code, the script seems to enter a blank title, even though the variable name from the echo code is exactly the same as that inside the query. I am not yet working on the code for the body text.
If I change the query to enter $tester, then it enters "blah blah blah" perfectly
I am so confused and any help would be great!