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

2001-12-17 Thread James Cox
Dumb question, but why is that? I have stripslashes on everything that goes into the database, (i also addslashes on everything, so people can't break the database, too), why is it unecessary? and what might it break? Thanks, James Cox -

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

2001-12-17 Thread Bas van Rooijen
except there's no need to stripslashes(), in fact it could even break things.. unless you have magic_quotes_runtime enabled (default is off in the latest php) bvr. On Mon, 17 Dec 2001 16:33:24 -0700, Kevin Stone wrote: >Ahh.. I was about to reply but nevermind. The two functions you're talk

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. :) > > > > 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

Re: Returning html code-PROB SOLVED

2001-12-17 Thread Steve Osborne
> 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? Figured it out. I completely forgot about two php functions that escape prob

RE: Returning html code

2001-12-17 Thread Roger Baklund
> 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? You store and retrieve html in a mysql database like you store/retrieve any other string values. You would probably wa

RE: Returning html code

2001-12-17 Thread rick herbel
iv'e done it before. store the html as a varchar,text field in database. using php would help if only certain sections are stored as html. Good Luck, Rick -Original Message- From: Steve Osborne [mailto:[EMAIL PROTECTED]] Sent: Monday, December 17, 2001 3:38 PM To: MySQL (E-mail) Subject: