I can use some help. I want to loop through my array and create a table which I have no problem with. The left two columns will display "Edit" and "Delete" links. My question is this, "How do I apply the $pid value to the Edit and Delete links so that I can pass them to the appropriate functions?"
<?
while($qdata = mysql_fetch_array($result)) {
$pid = $qdata["pid"];
$fname = $qdata["fname"];
$lname = $qdata["lname"];
$age = $qdata["age"];
echo "<tr>\n";
echo "<td nowrap bgcolor=\"$cfgThBgcolor\"><a href=$PHP_SELF?cmd=Edit>Edit</a></td>\n";
echo "<td nowrap bgcolor=\"$cfgThBgcolor\"><a href=$PHP_SELF?cmd=Delete>Delete</a></td>\n";
echo "<td nowrap bgcolor=\"$cfgBgcolorOne\">$fname</td>\n";
echo "<td nowrap bgcolor=\"$cfgBgcolorOne\">$lname</td>\n";
echo "<td nowrap bgcolor=\"$cfgBgcolorOne\">$age</td>\n";
echo "</tr>\n";
}
?>
Thanks for the help.
--zbert