I have a series of href links saved in a MySQL database that are used to dynamically populate a PHP page like this:
<a href="http://www.adomain.com/links.php">LINK</a>
This is done by using a session variable to query the database and fetch only the links for that person by their EmpNo.
I need to append one of the links stored in the database with a session variable at the time we populate the page.
Currently the link looks like this in the database:
<a href="http://www.adomain.com/links.php?EmpNo=<?php echo $_SESSION['EmpNo'] ?>">LINK</a>
The problem is that when we populate the php page with this href it writes exactly what is stored in the record and does not actually insert in this case the EmpNo session variable.
I've tried to use ."". and it cuts off after the ".
Is there a better way to do this?