in the link pass the ID column as a URL variable:
<a href="page.php?id=<?php echo($RecordsetName->getColumnVal("IDColumn")); ?>">
where RecordsetName is the name of the recordset and IDColumn is the name of the column that contains the desired ID.
Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.
These out-of-the-box solutions provide you proven, tested applications that can be up and running now. Build a store, a gallery, or a web-based email solution.