RE: [PHP-WIN] USING PHP to add ' to SQL
| From: | Joao Duraes | Date: | Thu, 27 Jul 2000 10:20:44 +0000 |
| Subject: | RE: [PHP-WIN] USING PHP to add ' to SQL | ||
| References: | 1 | Groups: | php.windows |
| Request: | Send a blank email to php-windows+get-1337@lists.php.net to get a copy of this message | ||
Or maybe add "magic_quotes_gpc = On" to your php.ini file?
Miguel
-----Original Message-----
From: Zak Greant [mailto:zak@nucleus.com]
Sent: 26 July 2000 17:20
To: Tom.com
Cc: php-windows@lists.php.net
Subject: Re: [PHP-WIN] USING PHP to add ' to SQL
At 11:48 PM 7/26/00 +0800, Tom.com wrote:
>Anybody know how to handle those characters such as " ' ", " | " etc
>when
>insert into a SQL database?
Use the addslashes function.
- Zak