Re: HTML button display problem
| From: | David Robley | Date: | Sat, 20 Jul 2002 01:33:14 +0000 |
| Subject: | Re: HTML button display problem | ||
| References: | 1 | Groups: | php.db |
| Request: | Send a blank email to php-db+get-20666@lists.php.net to get a copy of this message | ||
In article <20020719183702.91945.qmail@pb1.pair.com>, markbm@hotmail.com
says...
> 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.
My first thought would be - are you actually getting any result back from
your mysql query? You might want to check (mysql_num_rows) that you are
getting one or more records returned by your query. Also, if you are new
to php/mysql, it might be that you are not using the correct method to get
data from your query result. Perhaps if you were to include the code that
querys and extracts the data?
Cheers
--
David Robley
Temporary Kiwi!
Quod subigo farinam