Forum Moderators: coopster
Can anyone help a newbie with something simple please? I've looked everywhere to no avail. I want a page to get a URL parameter to filter results. Here's what I have, the reference to the URL is missing:
$sSQL = "SELECT Name, Address, Telephone, Region FROM Table WHERE Region = 'URL'";
$result = mysql_query($sSQL) or print(mysql_error());
echo "<table border='1'>
<tr>
<th>Name</th>
<th>Address</th>
<th>Telephone</th>
</tr>";
while($row = mysql_fetch_array($result))
{
echo "<tr>";
echo "<td>" . $row['Name'] . "</td>";
echo "<td>" . $row['Address'] . "</td>";
echo "<td>" . $row['Telephone'] . "</td>";
echo "</tr>";
}
echo "</table>";
Any help appreciated.