I have 3 tables in my database, aal i'm trying to do is display all the info in one table & when i select one of the rows, it has to display that rows(that persons) info from the other table.
This is my code
<html>
<head></head>
<body bgcolor="beige">
<?php
include("dbconnect3.php");?>
<table border="1" bgcolor="#9999ff" cellpadding="15" cellspacing="0">
<?$result= mysql_query("select* from personalinventory") or
die(mysql_error());?>
<?while($row=mysql_fetch_array($result))
{
?>
<tr>
<td><a href="<?$row["personalinventorydisplay.php?topic=personcode"]?>">
<?echo $personcode;?></a></td>
<?//echo "<a href='personalinventorydisplay.php?personcode='$personcode''>".$personcode."</a>";
?><td><?echo $row["firstname"];?></td>
<td><?echo $row["lastname"];?></td>
<td><?echo $row["location"];?></td>
<td><?echo $row["phonenumber"];?></td>
<td><?echo $row["jacknumber"];?></td>
<td><?echo $row["division"];?></td>
</tr>
<?}
echo "<br>\n";?>
</table>
<form ACTION="personalinventory.html" METHOD=post>
<INPUT TYPE=submit NAME="addnewpersonal" VALUE="Add New Personal">
</form>
<?mysql_free_result($result);
?>
I'm trying to hyperlink the first column of each row, so that in the personalinventorydisplay, i can dynamically display each person's
corresponding data.(The above code is producing all the columns in the table , except the hyperlinked column). Also how do i do the dynamic link??
Can someone please help me out here?