I have a slight dilemma on my hands. This is the situation. On a webpage, I am using a php while loop to read data into a page from a database. That works fine but I need each of this items when clicked, go to another webpage with more info on them. This more info is just data that i will have on another column in database so its no biggie. So my dilemma is how do I know which item is clicked. Is there a way to track which unique index was clicked? (Keep in mind that I might me listing thousands of items on the page).
这是我的时空密码
while($row = mysql_fetch_array($result)){
echo <div class="thumb"> ;
echo <a href="template.php"><img src= .$row[ dresses_pic ]. /></a> ;
echo <p> .$row[ price_ ]. </p> ;
echo </div> ;
}
I have tried putting a SESSION inside the while loop but the next page always reads the last listing as the item.
Is there a better way to achieve what am trying to do?
Thanks