RE: [PHP] HTML button display problem

From: Date: Fri, 19 Jul 2002 21:29:41 +0000
Subject: RE: [PHP] HTML button display problem
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-108583@lists.php.net to get a copy of this message
Usually when I get such problems, I start doubting I don't do something wrong with the index. So, how did you make the variabele $result? Did you call mysql_fetch_array()? or any other function go get a result row from a result identifyer? Are you using the same $result var for other data (and thus know for sure that it contains indeed data) ? I'd advice you to do a print_r($result); and see if your paypall_button is in the result row. It may as well be some case sensitivity problem ... let us know if you're problems are solved .. Ow, btw .. if this doesn't get you anywhere, did you open the generated html source and checked if the HTML code isn't printed (or echoed, whatever you call it) to the output, or not read s it should be by iexplore, netscape, mozilla or one if their nieces .. Greetz, Wouter -----Oorspronkelijk bericht----- Van: Erik Price [mailto:erikprice@mac.com] Verzonden: vrijdag 19 juli 2002 20:50 Aan: markbm CC: php-general@lists.php.net Onderwerp: Re: [PHP] HTML button display problem 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 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

« previous php.general (#108583) next »