Justtechjobs.com Find a programming school near you






Online Campus Both


php-general | 2000071

Re: [PHP] ' database problem From: Suzie (suzie <email protected>)
Date: 07/02/00

> 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>