Re: Displaying html
| From: | Fred | Date: | Mon, 17 Dec 2001 22:58:57 +0000 |
| Subject: | Re: Displaying html | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-78021@lists.php.net to get a copy of this message | ||
It depends on how you have magic quotes set up in your php.ini file. Mine
are set up as follows:
magic_quotes_gpc On On
magic_quotes_runtime Off Off
which I believe is the default, because I certainly never changed them.
I have never had a problem simply inserting or selecting html without the
need for using any of the escape functions. In other words, I do it just
like I would any other data and it works well.
Fred
Steve Osborne <s.osborne@chinookmultimedia.com> wrote in message
news:000f01c18753$e8d086e0$6e00a8c0@chinook.ualberta.com...
> Does anyone know of an easy way to store html code in a mysql database,
and
> then retreive it, in such a way that it can display the page as if it were
a
> standard html page? Would using php be of benefit to me?
>
> Steve Osborne
> s.osborne@chinookmultimedia.com
>
> <?php
> /* Happy Holidays */
> mysql_select_db('North_Pole');
> mysql_query('SELECT reindeer FROM stable WHERE nose_color="red"');
> ?>*
>
> *(borrowed from Paul)
>