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.
*/

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to