Re: use addslashes/stripslashes
| From: | Philip Olson | Date: | Fri, 16 May 2003 13:51:26 +0000 |
| Subject: | Re: use addslashes/stripslashes | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-147890@lists.php.net to get a copy of this message | ||
> b> i want to know why should to use addslashes function before
> b> adding string input box to mysql.
> b> and use stripslashes after i get data from mysql.
>
> b> what happen when i not use this function?
>
> It's wrong. You must use mysql_escape_string() before adding string to
> mysql. That's all!
> Otherwise you'll get an error
This is misleading and basically wrong, please read my post.
Regards,
Philip