DA Sorting Issues & Jump Menus
I don't have my testing files on this computer but I have links to the two pages associated with what I am doing.
The First Page, accommodation.php, uses the following table/recordset to display the listings on this page:
SELECT * FROM homestay
ORDER BY date DESC
In the Right Column of the above page are links to sort these listings by Category or Zone. When one clicks on one of the links in the Category or Zone sections like 'Share' or 'Homestay', a URL Parameter (i.e. accommodation_list.php?Cat=homestay) [since my testing files with code are not on the remote server, you can't test these pages r links that I have provided]
The results page, accommodation_list.php, has the following recordset established:
SELECT* FROM homestay
WHERE Cat=colname AND Zone=colname2 <--passing URL params from both columns
The results will be displayed and sorted according to the link clicked in the right columns of the accommodation.php and accommodation_list.php pages.
If the user goes to the accommodation.php page and clicks the 'Homestay' link in the right column to sort all listings under the category 'Homestay', they will be taken to the page accommodation_list.php?Cat=homestay.
If you notice at the top of the page accommodation_list.php, there is a menu/list to sort those listings once again by Price (DESC or ASC). The current document uses a menu but I was considering changing that to a jump menu.
I created a querystring called 'sort' (just like the DA tutorial describes) to sort the column 'price' DESC to show the most expensive -> the cheapest
The only thing is that when I go to change that order via a jump menu or even a link, I can't get the current listings to sort ASC to show the cheapest -> most expensive.
I am using DW CS3 and I do have DataAssist
What do I need to look for or do to accomplish this feat?