Re: Saving email address with @ in it
| From: | Timothy Aslat | Date: | Thu, 05 Apr 2001 02:23:13 +0000 |
| Subject: | Re: Saving email address with @ in it | ||
| References: | 1 | Groups: | php.db |
| Request: | Send a blank email to php-db+get-8232@lists.php.net to get a copy of this message | ||
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@spyderweb.com.au |
| 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 |