Hi,
I have a searchbox, wich uses a table to display the result, however the result is not displayed as a normal table,
ie, with headers to order by.
I want to be able to reorder the result that I got from the database without doing the query to the database again.
I know how to order a normal table with headers,
but on this I dont have any header to order by.
This is the html output with php:
I would like to be able to reorder by bedrooms, prices from etc.PHP Code:echo "<table class='tabla>;
do {
echo "<tr>";
echo "<td><p><a href=".$row["link_ingles"].">".$row["id_propiedad"]."</a><br>".$row["text_eng"]."<br>Pool: ".$row["pool"]."<br>Bedrooms: ".$row["bedrooms"]."<br>Bathrooms: ".$row["bathrooms"]."<br>Air-conditioning: ".$row["air"]."<br>Sleeps max.: ".$row["duermen"]." persons.<br>Internet: ".$row["internet"]."<br>Prices from: ".$row["price_eng"]."<br><br><a href=".$row["link_ingles"].">View details</a></p><p></p></td>";
echo "<td><a href=".$row["link_ingles"]."><img class=borderfotos src=".$row["image"]." border=\"0\"></a></td>";
echo "</tr>";
echo "<td class='result'> </td>";
echo "<td class='result'> </td>";
} while ($row = mysql_fetch_array($result));
echo "</table> \n";
Thanks in advance.



Reply With Quote


Bookmarks