php - Assign button image to links from db -


php newbie. echoing out links product pages, following code works fine:

<a href="<?php echo $rows[$product_buy];?>"<p>click here details</p></a> 

but, change text link "click here..." image of button. tried different ways, searched around, still haven't figured out

you style link button (by giving class/id make sure not links targeted) or can put img tag between a tag.

<a href="<?=$rows[$product_buy];?>"><img src="path_to_img" alt=""></a> 

Comments

Popular posts from this blog

python - mat is not a numerical tuple : openCV error -

c# - MSAA finds controls UI Automation doesn't -

wordpress - .htaccess: RewriteRule: bad flag delimiters -