Top

"Sort by" Box for Lists

Please Register to submit score.
Average Score  9.0
Scores Submitted  1
Date Added  Mar 24, 2008
Last Updated  Mar 24, 2008
Tags  database  mysql  search  sort 

Introduction

This code produces a sort box for any number of arbitrary criteria on any type of data you have in your database. For this particular example we've got a product sort where users can sort by price or name.

The hidden param1 and param2 variables are arbitrary. In this example they could be a search query and category id.

This also includes a javascript auto-submit so users don't need to click a "Go" or "Sort" button after making their selection.

You can find this code in action here:

http://www.hawkee.com/shop/cat/2801/

Grab the Code

Comments

  (1)  RSS
DarkDaemon
Comments: 52
 
Posted on Mar 24, 2008 2:48 am
i love it :D *Humps Hawkee's Head* 9/10

Please Register or Login to start posting comments.
Bottom