Its not an issue of doing the work. I am just not exaclty sure what I need to do. Seems to me there has to be an easy solution to this problem and its something I am not seeing or understanding.
Here is the code:
<?
$POST["user_id"];
$POST["name"];
include '../include/dbadmin.php';
$query = "SELECT * FROM users WHERE name='$name' ";
$msg = "<span style='color:red'>Could find update record</span>";
$result = mysql_query($query, $db) or die ($msg);
echo("<table width='100%' cellpadding='5' id='result_table'>");
while($row = mysql_fetch_array($result))
{
$HTTP_SESSION_VARS['user_id'] = '$result';
if(isset($HTTP_SESSION_VARS['user_id']))
{
echo ("<tr>");
echo ("<td>You have selected client: <b>".$row[name]."</b></td>");
echo ("</tr>");
echo ("<tr>");
echo ("<td>Username / Email: <a href='mailto:$row[username]'> ".$row[username]."</a></td>");
echo ("</tr>");
echo ("<tr>");
echo ("<td>Client Infoformation:<br />
Age <b>".$row[age]."</b><br />
Address: <b>".$row[address]."</b><br />
City: <b>".$row[city]."</b><br />
State: <b>".$row[state]."</b><br />
Zip: <b>".$row[zip]."</b>
<p>Phone: <b>".$row[phone]."</b></p></td>");
echo ("</tr>");
echo ("<tr>");
echo ("<td>What would you like to do?
<ul>
<li>Edit their contact information</li>
<li><a href='client_info_add.php?user_id=$row[0]$user_id'>Add</a> a training Log</li>
<li><a href='client_training_results.php?user_id=$row[0]$user_id'>View</a> thier MOST current training log</li>
<li><a href='javascript:confirmdelete(\"$row[0]$user_id\")'>Delete</a> this user</li>
</ul>");
echo ("<tr>");
echo ("</table>");
}
}
?>