Well I have some lines like this:
$Comments = addslashes(nl2br($Comments));
$Query = "INSERT INTO desktop ";
$Query .= "VALUES('', '$now', '$Thumb', '$Zoom', '$Comments')";
$result = mysql_query($Query, $mysql_link);
The Issue is that when I'm programming on my machine I'm using PHP4pl2 and MySQL 3.22.34win, and where I'm hosted they got PHP 3.0.13 and MySQL 3.21.32a on Linux. The code above is working perfectly fine after some 20 min of fixing, before there was doublequotes and that "addslashes" line wasn't there at all. And that worked on my system but as soon as I uploaded it and tested with a text containing doublequotes, trouble's up! I maybe should say that the $Comments variable are going into a blob in the DB.
Then i tried with the addslashes() function without nl2br() ant that didn't work, but with that function it did work. That's what I don't get, why did it suddenly work just using the nl2br() function.
I'll be glad if someone could explain this to me.
/Sleepy