That didn't work, but it didn't hurt to try....
I noticed that when I goto to the page - propertySpecPage.php, no value passes after the words buildingID=
Sorry I don't know how to insert in any way but this - Here's my php code:
First page you come to -
<?php
$conn = mysql_connect("dbName", "usr", "pswd") or die(mysql_error());
$db = mysql_select_db("masterTenantDirect0ry") or die(mysql_error());
$q = "SELECT * from allPropertyList";
$r = mysql_query($q,$conn) or die(mysql_error());
while ($row = mysql_fetch_array($r))
{
print '<td><a href="propertySpecPage.php?buildingID='.$building_ID.'">'.$row['propertyAddress'].'</a>';
print '<td><div align="center">'.$row['buildingID'].'</td>';
}
?>
Here's the next page, the referred to page:
<?php
$conn = mysql_connect("dbname", "usr", "pswd") or die(mysql_error());
$db = mysql_select_db("masterTenantDirect0ry") or die(mysql_error());
$building_ID = $_GET['buildingID'];
$q = "SELECT * FROM allPropertyList WHERE buildingID = '$building_ID'";
$r = mysql_query($q,$conn) or die(mysql_error());
while ($row = mysql_fetch_array($r))
{
print '<td><div align="center">'.$row['buildingID'].'</td>';
print '<td><div align="center">'.$row['propertyAddress'].'</td>';
}
?>
Thanks for all your help so far.