I am wanting to know if it is possible to generate a onclick event for a image with php I have the following code that gets the image_name from a database and displays the matching image in a table on the page.
print " <td>" . $row["name"] . "</td>";
print " <td><img src=images/products/satnav/".$row["image_name"]."></td>";
print " <td>" .$row["description"] . "</td>";
print " <td>" .$row["features"] . "</td>";
print " <td><b>£" .$row["price"] . "</b></td>";
print " </tr>" ;
But I want to make the image clickable so you can click on it to display a larger view of it. So it opens a new popup window with a bigger picture in it when you click on it.
Can anyone give me any guidence on how I may achieve this, Ive tried using javascript onclick event but can't seem to get my head around how to do this in php
Thanks