Re: Storing text with carriage returns in MySQL
| From: | Jason Wong | Date: | Thu, 15 Jul 2004 21:08:19 +0000 |
| Subject: | Re: Storing text with carriage returns in MySQL | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-190633@lists.php.net to get a copy of this message | ||
On Friday 16 July 2004 03:52, Vail, Warren wrote:
> The function addslashes() will resolve many user input problems where the
> user;
When using MySQL it is better to use the more specific:
mysql_real_escape_string()
> Usually MySQL will strip slashes when the column is retrieved
No. Slashes (those that were used to escape characters) are never stored in
the first place, and thus there are no slashes to strip upon retrieval.
--
Jason Wong -> Gremlins Associates -> www.gremlins.biz
Open Source Software Systems Integrators
* Web Design & Hosting * Internet & Intranet Applications Development *
------------------------------------------
Search the list archives before you post
http://marc.theaimsgroup.com/?l=php-general
------------------------------------------
/*
Half of being smart is knowing what you're dumb at.
*/