I'm trying to create a list of fraternity brothers from a database. Right now the brothers will enter their information, last name, first name, address, etc into a form then into a database. I've gotten the process to output to a phonelist type of thing. The question now is from the same table in the database, i want to create a list of brothers where the brother's name is a link that takes you to their profile, which would contain all of the information about them.
I can output the first and last names, but not with spaces in between them (don't know if it's possible) and also they aren't links.
here's what i have so far...
$sql = "SELECT * FROM brothers ORDER BY id DESC";
$result = mysql_query($sql) or die(mysql_error());
if(mysql_num_rows($result) > 0)
{
?>
<body bgcolor="#000000" text="#CCCCCC">
<?php
while($row = mysql_fetch_array($result))
{
$lname = $row['lname'];
$fname = $row['fname'];
?>
<table width="75%" align="center" cellpadding="0" cellspacing="0" bordercolor="#660099" border="2" cols = "3">
<tr>
<td align="center"><?php echo $fname; echo $lname; ?></td>
</tr>
</table>
<?php
}
?>