php-general | 2000071
Date: 07/02/00
- Next message: Tyler Longren: "Re: Re: [PHP] Troubled code (or my troubled brain)"
- Previous message: Greg Gatlin: "RE: [PHP] ' database problem"
- In reply to: Greg Gatlin: "RE: [PHP] ' database problem"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
> Simply,
> use the PHP function addslashes() on the string you are inserting into
the
> database. It will 'escape' any of those pesky user entered problems.
Will this work for %s as well? And if not, can anyone explain why putting %
in a text string will screw up unpredictably (removes next two characters,
or adds 0.000000 to the string, or deletes the entire rest of string,
apparently at random; escaping it doesn't seem to solve the problem) with
insert (into a MySQL db), but if I go correct it with update, it's just
fine?
Sue
-- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: php-general-unsubscribe <email protected> For additional commands, e-mail: php-general-help <email protected> To contact the list administrators, e-mail: php-list-admin <email protected>
- Next message: Tyler Longren: "Re: Re: [PHP] Troubled code (or my troubled brain)"
- Previous message: Greg Gatlin: "RE: [PHP] ' database problem"
- In reply to: Greg Gatlin: "RE: [PHP] ' database problem"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

