Forum Moderators: coopster
$results = null;
while ($array = mysql_fetch_array($result)) {
$propertyid = $array ['propertyid'];
$propertyaddress = $array['propertyadd1'].
$array['propertyadd2'].
$array['propertyadd3'].
$array['postcode'];
$propertytype = $array['propertytype'];
$bedrooms = $array['bedrooms'];
$price = $array['price'];
$description = $array['description'];
$results .= "
<tr>
<td class=\"right-align\">Price:£ </td><td> $price </td>
<td class=\"right-align\">Property Type: </td><td> $propertytype </td>
<td class=\"right-align\">Property Address: </td>
<td>
<a href=\"propertydetailsbox.php?propertyid=$propertyid\">$propertyaddress</a>
</td>
<td class=\"right-align\">Number of Bedrooms: </td><td> $bedrooms </td>
<td class=\"right-align\" valign=\"top\">Description: </td><td> $description </td>
</tr>
";
}
if ($results) {
echo "<table id=\"search-result\">$results</table>";
}
else { echo "<p>No results were found with that search.</p>"; }