here's my existing code ... how can I modify it to echo the results with the Dealer Names as URLs, when clicked on will display that record?
<?php
if ($DlrAccess == 888) {
$searchedit = $HTTP_POST_VARS['searchedit'];
if (strlen($searchedit) < 1) $searchedit = $HTTP_POST_VARS['searchedit'];
session_register("searchedit");
$searchedit = $HTTP_POST_VARS['searchedit'];
?>
<body onLoad="document.edit1.edituser.focus()">
<table width="760" border="0" cellspacing="0" cellpadding="5" background="images/common/logoback.jpg">
<tr><td colspan="2" valign="top">
<font face="Verdana,Geneva,Arial,Helvetica,sans-serif" size="-2"><b><a href="index.php">Home</a> > Select User To Edit<br></b></font><p align=center>
<font face="verdana,Arial" color=#000000 size=4>Tanaka's Partner Area - EDIT USER INFORMATION</font><br>
<form action="http://www.tanaka-usa.com/index.php?d=5&b=edit1" name=edit1 method="post">
<table width=480 border=5 cellpadding=5 align=center background="images/common/logoback.jpg">
<tr><td bgcolor=#EE7218 align=center>
<font face="verdana,Arial" color=#000000 size=2><b>Enter UserID to Edit<b></font></td></tr>
<tr><td align=center>
<font face="verdana,Arial" color=#000000 size=2>UserID:</font>
<input type="text" name="searchedit" size="10" maxsize="15">
<input type="submit" value="See User"> <input type="reset" value="Clear">
</td></tr>
</table>
<br><br>
<br>
<?php
include("dbinfo.inc.php");
mysql_connect(localhost,$username,$password);
@mysql_select_db($database) or die( "Unable to select database");
$query = "SELECT * FROM Dealers WHERE DlrName LIKE '$searchedit%'";
$result=mysql_query($query);
$num=mysql_numrows($result);
$i=0;
echo "<table border=\"2\" align=\"center\"><tr valign=\"middle\" align=\"center\"><td bgcolor=\"#c0c0c0\"><font size=2><b>User Name</b></td><td bgcolor=\"#c0c0c0\"><font size=2><b>User City</b></td><td bgcolor=\"#c0c0c0\"><font size=2><b>User ID</b></td><td bgcolor=\"#c0c0c0\"><font size=2><b>Dlr Number</b></td></tr>";
while ($i < $num) {
$EditName=mysql_result($result,$i,"DlrName");
$EditCity=mysql_result($result,$i,"DlrCity");
$EditID=mysql_result($result,$i,"UserID");
$EditNumber=mysql_result($result,$i,"DlrNumber");
echo "<tr align=\"left\" valign=\"top\"><td><font size=2>$EditName</td><td><font size=2>$EditCity</td><td align=\"right\"><font size=2>$EditID</td><td align=\"center\"><font size=2>$EditNumber</td></tr>";
++$i;
}
echo "</table><br><font size=\"2\" face=|\"verdana,arial\"><br><br><br>";
}
?>
</body>
</html>