View Single Post

Old 02-03-2007, 08:33   #2 (permalink)
Wistow
Moderator
 
Join Date: Mar 2005
Location: Barnsley, UK
Posts: 1,001
iTrader: 0 / 0%
Wistow has a reputation beyond reputeWistow has a reputation beyond reputeWistow has a reputation beyond reputeWistow has a reputation beyond reputeWistow has a reputation beyond reputeWistow has a reputation beyond repute
Default

If you simply put the above code into the left column of the table it should work how you want with regards to the right column.

As for the drop down box you'd need to add the drop down to the same form which handles the search:
Code:
<select name="category">
<option value="" selected="selected"></option>
<option value="sport">Sport</option>
</select>
Then change:
Code:
$field_to_search3 = "category";
To:
Code:
if(isset($_GET['category'])){
$field_to_search3 = $_GET['category'];
}else{
$field_to_search3 = What_if_category_not_searched?
}
This should work
Wistow is offline   Reply With Quote