I am sure this is possible just not sure how to do it. I am using this code to display a query result
<?
include("dbinfo.inc.php");
mysql_connect(localhost,$username,$password);
@mysql_select_db($database) or die( "Unable to select database");
$sql = 'SELECT *FROM `invoices` ORDER BY `id` DESC LIMIT 0, 100 ';
$result=mysql_query($sql);
$num = mysql_numrows($result);
mysql_close();
echo "";
?>
<?
$i=0;
while ($i < $num) {
$date=mysql_result($result,$i,"date");
$id=mysql_result($result,$i,"id");
$status=mysql_result($result,$i,"status");
$billto=mysql_result($result,$i,"billto");
$total=mysql_result($result,$i,"total");
?>
<div align="center">
<table border="0" width="700">
<tr>
<td width="140" align="left"><? echo "$id"; ?></td>
<td width="140" align="left"><? echo "$date"; ?></td>
<td width="140" align="center"><? echo "$billto"; ?></td>
<td width="140" align="right">$<? echo "$total"; ?></td>
<td width="140" align="right"><? echo "$status"; ?></td>
</tr>
</div>
<?
++$i;
}
echo "</table>";
?>
what I am wanting to do is create a link from the <? echo "$id"; ?> tag to a preformated invoice style output for that respective id "invoice" number. I am not quite sure how to do this. Any help would be greatly appriciated.
Thanks in advance,
Josh