[PHP] Re: Returning html code-PROB SOLVED

2001-12-17 Thread Steve Osborne

snip

 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?
snip

Figured it out.  I completely forgot about two php functions that escape
problem characters in databases and unescape them when retrieved.

Problem solved.

Steve Osborne
[EMAIL PROTECTED]

?php
/* Happy Holidays */
mysql_select_db('North_Pole');
 mysql_query('SELECT reindeer FROM stable WHERE nose_color=red');
?







-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] Re: Returning html code-PROB SOLVED

2001-12-17 Thread Kevin Stone

Ahh.. I was about to reply but nevermind.  The two functions you're talking
about are addslashes() and stripslashes().  Yes those are very handy.  :)

 snip

  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?
 snip

 Figured it out.  I completely forgot about two php functions that escape
 problem characters in databases and unescape them when retrieved.

 Problem solved.

 Steve Osborne
 [EMAIL PROTECTED]

 ?php
 /* Happy Holidays */
 mysql_select_db('North_Pole');
  mysql_query('SELECT reindeer FROM stable WHERE nose_color=red');
 ?







 --
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 To contact the list administrators, e-mail: [EMAIL PROTECTED]



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]