A
Anonymous
Guest
Hello, I'm new at this and I really need some help. I created a query that pulls in all the rows from a table called Applications and displays the first few fields from those rows:
<?php
$resultID = mysql_query("SELECT E_LastName, E_FirstName, E_SSNumber, A_SubmitDate FROM Applications where G_Display = '0' order by E_LastName", $LinkID);
print "<font size=+1>";
print "Applicants";
print "<table>";
print "<table border=0><tr><th>Last Name  </th>";
print "<th>First Name       </th>";
print "<th>Social Security   </th>";
print "<th>Submit Date   </th>";
print "</tr>";
while ($row = mysql_fetch_row($resultID))
{
print "<tr>";
foreach($row as $field)
{
if ($field == "0") {
($field = "NO");
}
elseif ($field == "1") {
($field = "YES");
}
elseif ($field == "-1") {
($field = "YES");
}
elseif ($field == "") {
($field = "UNKNOWN");
}
print "<td>$field</td>";
}
print "</tr>";
}
print "</table>";
print "</font>";
?>
What I would like to be able to do is to have those results display as a hyperlink that you can click on that will take you to another page which will then display the whole record (row). I know how to format the data the way I want it to display, just am not sure how to create the connection from the main page to a specific record.
Any help would be great!
Thanks!
<?php
$resultID = mysql_query("SELECT E_LastName, E_FirstName, E_SSNumber, A_SubmitDate FROM Applications where G_Display = '0' order by E_LastName", $LinkID);
print "<font size=+1>";
print "Applicants";
print "<table>";
print "<table border=0><tr><th>Last Name  </th>";
print "<th>First Name       </th>";
print "<th>Social Security   </th>";
print "<th>Submit Date   </th>";
print "</tr>";
while ($row = mysql_fetch_row($resultID))
{
print "<tr>";
foreach($row as $field)
{
if ($field == "0") {
($field = "NO");
}
elseif ($field == "1") {
($field = "YES");
}
elseif ($field == "-1") {
($field = "YES");
}
elseif ($field == "") {
($field = "UNKNOWN");
}
print "<td>$field</td>";
}
print "</tr>";
}
print "</table>";
print "</font>";
?>
What I would like to be able to do is to have those results display as a hyperlink that you can click on that will take you to another page which will then display the whole record (row). I know how to format the data the way I want it to display, just am not sure how to create the connection from the main page to a specific record.
Any help would be great!
Thanks!