However today, I had tried with another host and I wind up getting the below code. so my quotes have been changes to \"
Is this due to a parameter in the database ?
If so how can I see this parameter and change it ?
You can find out if magic_quotes are enabled or disabled in the output from phpinfo() search the page for “magic_quotes_gpc”, that line and the two lines below it relate to magic_quotes
then $n_message is what I insert into my database.
Using the same code on X different hosts, I get different results in the database itself.
This might make seeing the problem a bit easier.
This is the host that is giving me the problem, it seems to add its own escape characters in the table’s field .
<img src=\“/userimages/cherry_2.jpg\” alt=\“\” width=\“400\” height=\“299\” /><br />
On 3 other hosts, I get the below.
<img src=“/userimages/cherry_2.jpg” alt=“” width=“400” height=“299” /><br />
It seems your HTML has been converted to html entities and as far as I know, mysql does not convert to entities itself. But the conversion seems little odd if it was converted by PHP function because PHP function does convert mostly other characters too like <, >, etc. But in your case only the double quotes are converted and that again strange thing is after conversion the attribute value has been again enclosed with double quotes again.
Can you paste here your PHP code if you have used PHP function like htmlentities to convert?