Re: HTML button display problem

From: Date: Tue, 23 Jul 2002 00:29:52 +0000
Subject: Re: HTML button display problem
References: 1 2 3  Groups: php.db 
Request: Send a blank email to php-db+get-20717@lists.php.net to get a copy of this message
In article <20020722234029.37825.qmail@pb1.pair.com>, markbm@hotmail.com says... > It doesn't bring back any HTML when I view the source: > > <tr> > <td colspan=3 ><center> > > > </center> > </td> > </tr> > > I tried the addslashes and stripslashes but I'm not sure that I had the > syntax right. Any ideas? Thanks. > > Mark > > "Dasmeet Singh" <dasmeet@tunmail.com> wrote in message > news:3D3930CD.1090907@tunmail.com... > > Markbm wrote: > > > I am working through an issue where I'm trying to display HTML code, > stored > > > in a text field in a MySQL database. The code that I have looks like > this: > > > > > > <tr> > > > <td colspan=3 ><center> > > > <?php printf($result[PAYPAL_BUTTON]); ?> </center> > > > </td> > > > </tr> > > > > > > This code displays nothing when viewed on the web server, although the > > > contents of the db field are: > > > > > > <FORM method="POST" > > > > <P><INPUT type="submit" value="Submit" > > > name="subBut"> > > > </FORM> > > > > > > Question: > > > > > > 1. How do I get this code to display correctly (i.e. create the button > / > > > not show the underlying HTML)? > > > > > > Any help would be greatly appreciated. Thanks for your help. > > > > > > Mark > > > > > > > > > > > > > Can you tell what HTML do you get from web server..ie when you view Check that your mysql query is working correctly and actually returning data - mysql_error is a useful debugging tool. If all else fails, try showing the code you are using to retrieve from the db. -- David Robley Temporary Kiwi! Quod subigo farinam

« previous php.db (#20717) next »