Re: characters - URGENT!!!
| From: | (Stig Sæther Bakken) | Date: | Thu, 24 May 2001 12:26:51 +0000 |
| Subject: | Re: characters - URGENT!!! | ||
| References: | 1 | Groups: | php.db |
| Request: | Send a blank email to php-db+get-9608@lists.php.net to get a copy of this message | ||
["Selvin Sakal" <htmltec@hotmail.com>]
> Hi,
> i have a mysql database, can anyone tell me any characters that cannot
> be entered into mysql (like !@#$%, etc).
>
> Also i have a string and i would like to remove html tags, characters
> (like ~!@#$%^&*()_+|`-=\{}[]:"<>?;',./ ) out of it, so basically i
> want the string to be just left with words.
Try the manual:
http://php.net/manual/en/function.addslashes.php
(for mysql)
http://php.net/manual/en/function.strip-tags.php
- Stig
--
Stig Sæther Bakken <ssb@fast.no>
Fast Search & Transfer ASA, Trondheim, Norway