I have a price filed in the links table. What I want is to provide way so the users can sort category page links and/or search results DYNAMICALLY via search.cgi by Ascending/Des price or High/Low price like so -
<"/cgi-bin/search.cgi?Price=Asc">Sort links Ascending</A>
OR
<"/cgi-bin/search.cgi?Price=High">Sort links by Highest Price</A>
So, basically I want to put links in category.html and/or search_results.html which connect to search.cgi and when clicked upon will rearrange links with High/Low price.
One thing to note though is that some links have commas and decimals in the price field and some don't but I want the search to ignore commas and decimals and just straightaway sort links based on price.
Thanks!
<"/cgi-bin/search.cgi?Price=Asc">Sort links Ascending</A>
OR
<"/cgi-bin/search.cgi?Price=High">Sort links by Highest Price</A>
So, basically I want to put links in category.html and/or search_results.html which connect to search.cgi and when clicked upon will rearrange links with High/Low price.
One thing to note though is that some links have commas and decimals in the price field and some don't but I want the search to ignore commas and decimals and just straightaway sort links based on price.
Thanks!