Re: MySql database data has html code in it
| From: | John Lim | Date: | Sun, 02 Sep 2001 09:17:19 +0000 |
| Subject: | Re: MySql database data has html code in it | ||
| References: | 1 | Groups: | php.db |
| Request: | Send a blank email to php-db+get-12093@lists.php.net to get a copy of this message | ||
Hi
Try echo htmlspecialchars($code) to display the html.
"Crosswalkcentral" <support@crosswalkcentral.net> wrote in message
news:20010902040959.97186.qmail@pb1.pair.com...
> Hello
> Another question for the pros.
>
> I have a Mysql database which contains a table labled html
> in this table I have some short html scripts
> I have created a search for my scripts and when I Echo them (example code
> below) It only shows me the text and not the html script itself
>
> Echo ($code);
>
> Is their another function that I can use to display to contents of this
> variblae?
> I assueme that PHP is trying to process it as part of the echo statement.
>
> --
> Cross Walk Central
> www.crosswalkcentral.net
> Support Center
> Your Web Hosting Community!
>
>
>