Page 1 of 1

using php variables in html

Posted: Tue Jul 06, 2004 10:52 pm
by rudvee
Hi...

I've written html code and included some php part in it to retrieve (some product information)from the database(mysql). I've the product info retrived into php variables. I don't know how to use these variables in the actual html code.

below is the html code. I want to use a php variable(say, $product) instead of "xxx" in the following code:
<em><img src="xxx" align="bottom" width="70" height="109"></em>

Any help is appreciated.
Thank you

Posted: Tue Jul 06, 2004 10:59 pm
by markl999

Code: Select all

<em><img src="<?php echo $product ?>" align="bottom" width="70" height="109"></em>