Assuming you can get the following variables or equivilent...
$id = X, some integer
$headline = xxxx...some text.
echo "<a href=\"your_page.php?id=$id\">$headline</a>";
You can do it with the result set, too...
echo "<a href=\"your_page.php?id=" . $row[id] . "\">" . $row[headline] . "</a>";
---John Holmes...