not intensive at all
instead of one sql statement such as
$sql="select * from table order by field1"
you use
if ($sortby==1)
$sql="select * from table order by field1"
elseif ($sortby==2)
$sql="select * from table order by field2"
elseif ($sortby==3)
$sql="select * from table order by field3"
else
$sql="select * from table order by field1"
and in the title of your display table
you put the link as mypage.php?sortby=1, or mypage.php?sortby=2, ...
el_kab0ng wrote:
We've all seen it somewhere...now I want to learn how to do it.
I have a table, three columns wide with the first row being the types of field elements.
I want to allow a user to sort by any of the three categories.
I know this is probably labor intensive, but could someone steer me in the right direction to a tutorial or something?