you need to be passing the record id in the URL,
in php you'd be using something similar to
Code:
<a href=# onclick=openW("<?php echo $row_thumbnails['id']; ?>")> <?php echo $row_thumbnails['name']; ?></a>
what that is doing, is within a do while loop, and it outputs an array, enclosing the dynamically pulled from the database name inside href tags, which shows the id number for the name.
the javascript which makes this work is
Code:
<SCRIPT language="javascript">
function openW (id)
{
myWin=open ("details.php?detailsid="+id,"closerLook","scrollbars=yes,resizable=yes");
}
</SCRIPT>
so the javascript is telling the link to produce the URL
details.php?detailsid= and the number from the id in the href tags around the name.
you then use the id passed in the url to query the database and get the records for that id.
this is based as I said on php, but most programming languages use a similar logic.
If that dosen't make any sense I'll try and explain it better.
Sometimes, when my code just won't behave, I take it outside and make it listen to britney spears music, and when it comes back it's really well behaved. I wonder if it's suffering from post tramatic stress syndrome now..