php-db | 2001041
Date: 04/04/01
- Next message: Shannon Doyle: "[PHP-DB] Varible insert"
- Previous message: Jim Ray: "[PHP-DB] Saving email address with @ in it"
- In reply to: Jim Ray: "[PHP-DB] Saving email address with @ in it"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Jim Ray wrote:
> Can anyone tell me if this is correct? Or can someone tell me how to save a
> field with an @ in it?
You certainly can safe a field with a @ in it, just use the addslashes()
function on the string before you do the insert.
eg:
$string = addslashes($string);
this will basically escape any command characters with a backslash, or you could
do it manually.
Cheers
Tim
-- | Disclaimer: | Timothy Aslat tim <email protected> | | The sender of this email is a figment | http://www.goodiesruleok.com | | of a deranged imagination and leaves it| Spyderweb Consulting | | to your own devices to decide whose... | P: 82270800 M: 0401088479 |-- PHP Database Mailing List (http://www.php.net/) To unsubscribe, e-mail: php-db-unsubscribe <email protected> For additional commands, e-mail: php-db-help <email protected> To contact the list administrators, e-mail: php-list-admin <email protected>
- Next message: Shannon Doyle: "[PHP-DB] Varible insert"
- Previous message: Jim Ray: "[PHP-DB] Saving email address with @ in it"
- In reply to: Jim Ray: "[PHP-DB] Saving email address with @ in it"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

