suzie 4 Posted September 13, 2011 Report Share Posted September 13, 2011 Dear friends, if a string contains double quote ", when retreiving it from the database using php it appears " please any help to appear ".. Quote Link to post Share on other sites
Ingolme 1,032 Posted September 13, 2011 Report Share Posted September 13, 2011 That can only happen if you used htmlspecialchars() before putting the string into the database. Quote Link to post Share on other sites
suzie 4 Posted September 13, 2011 Author Report Share Posted September 13, 2011 am not using htmlspecialchars(),but in the table it appears as ", now if i want to retreive it to the site I want it to appear as " how it can be done... Quote Link to post Share on other sites
JamesB 50 Posted September 13, 2011 Report Share Posted September 13, 2011 htmlspecialchars_decode() will turn html entities back into characters, although i think it would be better to store the data as plain text in the database. Quote Link to post Share on other sites
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.