Re: HTML button display problem
| From: | Scott Hurring | Date: | Fri, 19 Jul 2002 20:54:18 +0000 |
| Subject: | Re: HTML button display problem | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-108574@lists.php.net to get a copy of this message | ||
and also make sure to strip out all slashes that the DB/PHP
might weasel into your mysql text.
or you could also skip "print" altogether and do this:
<?= $result['PAYPAL_BUTTON'] ?>
ciao, on my vespa.
--
Scott Hurring
Systems Programmer
EAC Corporation
scott (*) eac.com
--
"Erik Price" <erikprice@mac.com> wrote in message
news:5D780CCC-9B48-11D6-AE60-00039351FE6A@mac.com...
>
> On Friday, July 19, 2002, at 02:44 PM, markbm wrote:
>
> > <?php printf($result[PAYPAL_BUTTON]); ?> </center>
> > </td>
>
> [...]
>
> > 1. How do I get this code to display correctly (i.e. create the
> > button /
> > not show the underlying HTML)?
>
> Are you sure you want to use the printf() function? Try using print()
> instead.
>
> Also, unless PAYPAL_BUTTON is a constant, you probably want to quote
> that associative array element ($result['PAYPAL_BUTTON']).
>
>
> Erik
>