'Rewrite an html="#" gotoproduct(900) into an actual html link
I am new to php. On a product page where users can click to go to the detailed product page I currently see:
Current:
<a href="#" onclick="return gotoProduct(901)"> <p class="button">Show</p></a>
I should however have this on the page where the products are listed:
Desired: <a href="mycompany.com/boot901"> <p class="button">Show</p></a>
the "gotoProduct" executes gotoProduct(".$row["shoeID"].") — selecting the row in the db corresponding to the shoe id.
How can I achieve the desired result?
Thank you
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
