Please could you help me with my code.
I just need to pass the varibles to moredetails.php after "Click here for more details"
Code:
<?php
mysql_connect("localhost","root","pass");
mysql_select_db("db");
?>
<style type="text/css">
<!--
.style1 {color: #000000}
-->
</style>
<table width="300" border="1" bgcolor="#9900FF">
<?
$type = $POST["type"];
$price = $POST["price"];
$minprice = $POST["minprice"];
$maxprice = $POST["maxprice"];
$query = "SELECT * FROM propertys WHERE type LIKE '%".$POST['type']."%' AND price BETWEEN '".$POST['minprice']."' AND '".$_POST['maxprice']."'";
$result = mysql_query($query);
if (mysql_num_rows($result)) {
while ($row = mysql_fetch_array($result)) {
$picture = $row["picture"];
$price = $row["price"];
$ref = $row["ref"];
$type = $row["type"];
$erf = $row["erf"];
$size = $row["size"];
$bed = $row["bed"];
$bath = $row["bath"];
$gar = $row["gar"];
?>
<tr>
<td width="150"><span class="style1"><?php echo "<image src=\"$picture ","\" style=\"border: 2px solid black;\">
"; ?><?php echo $price = $row["price"]; ?></span></td>
<td width="150"><span class="style1"><a href="moredetails.php" title="More Details">Click here for more details</a></span></td>
</tr>
<?
}
}
?>
Thank you in advance.