Re: MySql database data has html code in it

From: Date: Sun, 02 Sep 2001 02:12:49 +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-12081@lists.php.net to get a copy of this message
Yea I tried that before I posted I even tried editing the data in the table to but the <pre> before and </pre> after and it still will not show it. -- Cross Walk Central www.crosswalkcentral.net Support Center Your Web Hosting Community! "Ali Nayeri" <a_nayeri@yahoo.com> wrote in message news:MHEJLHFKJHFOLMANMIKGGEILCBAA.a_nayeri@yahoo.com... > Hi, > > I'm just a newbie and don't know that much but would putting: > > Echo (<pre>$code</pre>); > > solve the problem. That's what most people use to display HTML code on an > HTML page. > > As I said I'm new and I never tried it. But you can try and see if it works. > > Ali > > -----Original Message----- > From: CrossWalkCentral [mailto:support@crosswalkcentral.net] > Sent: September 1, 2001 6:46 PM > To: php-db@lists.php.net > Subject: [PHP-DB] MySql database data has html code in it > > > 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! > > > > > -- > PHP Database Mailing List (http://www.php.net/) > To unsubscribe, e-mail: php-db-unsubscribe@lists.php.net > For additional commands, e-mail: php-db-help@lists.php.net > > > _________________________________________________________ > Do You Yahoo!? > Get your free @yahoo.com address at http://mail.yahoo.com >

« previous php.db (#12081) next »