NYCPHP Meetup

NYPHP.org

[nycphp-talk] MySQL/Flash/Apostrophe issue

Ken Robinson kenrbnsn at rbnsn.com
Fri Dec 7 14:14:28 EST 2007


Quoting Kristina Anderson <ka at kacomputerconsulting.com>:

> Yes it's definitely a flash issue.  I will replace the apostrophes in
> the strings with &#39; before database insert and let you know how
> that works!

Don't replace the single quotes in the database. Use the  
htmlentities() function on the output with the ENT_QUOTES option. This  
will replace the quotes (and other symbols) with the appropriate "&"  
strings.

Ken




More information about the talk mailing list