Justtechjobs.com Find a programming school near you






Online Campus Both


php-db | 2001041

Re: [PHP-DB] Saving email address with @ in it From: Timothy Aslat (tim <email protected>)
Date: 04/04/01

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>