Sorry for the wordy title. I know what I want to do, but I don't know what it's called (so I haven't had much luck finding a how-to)
Have code set up to retrieve client data from mySQL and spit it out into a nice HTML table. The HTML table is just some high level info. (code below)
There is a template that contains the client's actual dossier. (code not shown)
I need to make it so that $person_name is a clickable link that will open up the dossier and populate it with $person_name's details.
I know this is possible because I see it ALL the time, but I can't actually find any how-tos. Except some really bad suggestions to use _GET. :queasy:
<?php
include 'actualbody.php';
include 'core/config.php';
include 'core/opendb.php';
$i = 1;
echo "<table cellpadding='2' style='width: 580px;'>
<tr>
<td style='border: 2px groove white;'><CENTER> Name </td>
<td style='border: 2px groove white;'><CENTER> Gender </td>
<td style='border: 2px groove white;'><CENTER> Breed </td>
</tr>";
WHILE ($i < $num) {
echo "
<tr><TD style='border: 2px groove white;'>$person_name[$i] </td>
<TD style='border: 2px groove white;'>$person_age[$i]</td>
<td style='border: 2px groove white;'>$person_birthday[$i]</td>
</tr>";
$i++;
}
echo "</table>";