Justtechjobs.com Find a programming school near you






Online Campus Both


php3-list | 2000051

RE: [PHP3] $query, PHP3/MySQL From: Devta Singh (devta.singh <email protected>)
Date: 05/03/00

May be because addslash only modifies ' and " characters.

THE MANUAL SAY:
string addslashes(string str);
Returns a string with backslashes before characters that need to be quoted
in database queries etc. These characters are single quote ('), double quote
("), and backslash (\).

So you must put \, instead of , as glue string in the implode function so
SQL don't be confused by an premature comma.

Try it, good luck

---------------------------------------------------------
Devta Singh
devta.singh <email protected>
devta <email protected>
---------------------------------------------------------

-- 
PHP 3 Mailing List <http://www.php.net/>
To unsubscribe, send an empty message to php3-unsubscribe <email protected>
To subscribe to the digest, e-mail: php3-digest-subscribe <email protected>
To search the mailing list archive, go to: http://www.php.net/mailsearch.php3
To contact the list administrators, e-mail: php-list-admin <email protected>