Hi I have searched a lot to find a solution but still have problem. I have created foreachloop to check selected item and bring them on the main page and it works perfectly but after that I want the brought image to be clickable and go to another page that indicates more details of that image. the image is clickable now but does not go any where. here is parts of my code:
Advertisement
Answer
I saw that you put in href only the $id
<a href="productsByItemId.php?id=<?= $id ?>">
And the right thing is $itemId
<a href="productsByItemId.php?id=<?= $itemId ?>">