I have a page that is displaying some images to be rated. on one page i display all the images then once an image is selected i want to get the details for that image from a sql database table. here is what i got.
<html>
<body>
<a href="rating.php"><img id="img1" src="images/001.jpg" /></a>
<a href="rating.php"><img id="img2" src="images/002.jpg" /></a>
Each image is a link.
On the rating.php i got
<?php
$image = $_REQUEST["Name"]; //get the image
$Query = mysql_query("SELECT * FROM table WHERE image = '$Name'");
Here is where i need to make sure i select the image that was clicked on the last
page so i can get the information from that image. I was thinking to give each image an id then save that and get it on the other page and connect to the database like that. any ideas? Am I on the right track?