I'm currently using this code to display data from table "tbl_chapter".
$query = ("select * from tbl_chapter");
$result = mysql_query($query) or die("Query fail");
if (mysql_num_rows($result) == 0)
{
} else
{
echo "<B> Current Chapters List </B>";
echo "<table border=1>";
while($row = mysql_fetch_array($result))
{
echo "<P><B> " . $row['chapter_name'] . " - " .$row['county'] . "</B><BR> " . $row['lunch_breakfast'] . "<BR> " . $row['location'] . "<BR> " . $row['time'] . "<BR> " . $row['day'] . "<P>";
}
}
I need to have the "chapter_name" field hyperlink to another table called 'tbl_members' who's "chapter_ name" is the same. So that clicking on it will take it to the page that displays those members; chapter_name_members.php.