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
using php variables in html
Moderator: General Moderators
Code: Select all
<em><img src="<?php echo $product ?>" align="bottom" width="70" height="109"></em>