PHP and MySQL – storing quotes

The best way to store quotes

htmlentities($campaignsubject, ENT_QUOTES|ENT_SUBSTITUTE|ENT_HTML401);

And to decode it back use

html_entity_decode($rowsCampaigns['content'],ENT_QUOTES|ENT_SUBSTITUTE|ENT_HTML401);

Leave a Reply