I'm not sure what you mean. I provided it as an example of how to construct a link, but you would want to dynamically build a list of links from the db.
let's say you executed your query and are processing a result set
<? while ($row = mysql_fetch_array($result)) { ?>
<a href="/your.script.php?tripId=<?= $row['trip_id_no'] ?>"><?= $row['trip_name_tx'] ?></a>
<? } ?>
hope you can make some sense of that 😉
p.