Dealing with apostrophes and quotation marks for forms and output with PHP

Posted by & filed under PHP.

I have run into the same annoying problem for a long time and finally found an easy solution. Whenever forms are submitted via PHP¬†(by a user or myself) and apostrophes or quotation marks are added in forms, they are escaped using mysqli_real_escape_string and entered into the database without a hitch. However, when outputting the data… Read more »