PHP Generate href Link for PDF in Results Table
<p>I Have some data in a table which is generate from a PHP file querying a MySQL data base ath the end of each of these rows I would like to put a link to a unique file which has been created using the data from the record.</p>

<p>i.e. name-date-email.pdf </p>

<p>I have put this code in but it repeats can any one tell me the best way to do this?</p>

<pre><code>&lt;?php echo "&lt;a href=\"$startUrl$gNum-$userEmail-$gDat-$gRef$extension\" class=\"button button-gray no-text\" style=\"height: 90%;\" title=\"Get Guarantee PDF\"&gt;&lt;span class=\"pdf\"&gt;&lt;/span&gt;PDF&lt;/a&gt;"?&gt;
</code></pre>
