Sorry dude, just drowned about 50 pikmin and completely forgot about coding.
There are stacks of errors in your code - first you can't have a space between the $ sign and the variable name, your query code was put into the last else if block of code, so would only run if that condition were met - plus the conditions had two greater thans in a lot of cases.
This version should work
<?php
$mysql_link = mysql_connect("mysql.lsbu.ac.uk", "brookeab", "once_fed");
$testresult = mysql_select_db( "brookeab" ,$mysql_link);
// all the queries start the same - so set the guts of the query and tag on the conditions
$query = "SELECT Price, Area, Type FROM Properties WHERE ";
// could use switch instead of all these ifs
if($ViewMethod == "under £100000")
{
$query.= "Price <100000";
}
else if($ViewMethod == "£100000-125000")
{
$query.= "Price >100000 and Price <125000";
}
else if($ViewMethod == "£125000-150000")
{
$query.= "Price >125000 and Price <150000";
}
else if($ViewMethod == "£150000-175000")
{
$query.= "Price >150000 and Price <175000";
}
$mysql_result = mysql_query ($query, $mysql_link);
print '<table border="1" width="100%">';
while( $row = mysql_fetch_row($mysql_result) )
{
print "<tr><td width=\"10%\">$row[0]</td>";
print "<td width=\"30%\">$row[1]</td>";
print "<td width=\"30%\">$row[2]</td>";
print "</tr>";
}
print "</table>";
?>
Consider using BETWEEN on the queries, and as a small point always make table names and fields lower case as in the long run it'll save time if you never have to think about capitalisation.
Gah - just looked at the page with the dropdowns - the code for the select is wrong. Selects are like this
<select name="ViewOptions">
<option value="10000-30000">Between 10 and 30 thousand</option>
<option value="30000-80000">Between 30 and 80 thousand</option>
</select>
etcetera... and it's the value that gets passed for the box.
Plus unless you've got register globals on, which I recommend against, you'll have to suck the variable out of the $GET or $POST superglobal arrays, e.g.
$ViewMethod = $_POST['ViewMethod'];