Re: Proper Way To Store, Retrieve Text To/From PostgreSQL
Posted by Alfred on 02/14/07 04:02
On Feb 13, 6:40 pm, Jerry Stuckle <jstuck...@attglobal.net> wrote:
> First of all, htmlentities() is for displaying data in html - not
> storing in the database.
>
> Then use pg_escape_string to encode your data and store it in your
> database. Retrieve it then use htmlentities() to display the data.
Thanks, didn't know about that one. I'll give it a try.