Hey guys, have a search designed but I want to pretty up the output. I want to print the results in a table( possible a few columns across and the items themselves listed in row – kinda like a list) instead of haphazardly around the page. Please advise?
Here is my search code that the table has to integrated with:
while ($row=mysql_fetch_array($result))
{
$blueprint_id=$row["blueprint_id"];
$name=$row["name"];
$location=$row["location"];
$type=$row["type"];
$storys=$row["storys"];
$bedrooms=$row["bedrooms"];
$bathrooms=$row["bathrooms"];
// how to display each row of data
echo"
blueprint_id: $blueprint_id<br>
name: $name<br>
location: <img src='$location'>
type_id: $type<br>
story_id: $storys<br>
bedrooms: $bedrooms<br>
bathrooms:$bathrooms<br>";
echo "<form method='post' action='cart.php'>";
echo "<input type='hidden' name='blueprint_id' value='$blueprint_id'>";
echo "blueprint_id :$blueprint_id | ";
echo "Quantity: <input type='text' name='quantity' value ='1' size='5'> ";
echo "<input type='submit' name='submit' value='ADD'>";
echo "</form><P>";
}