Gossamer Forum
Home : Products : DBMan : Customization :

Sorting Link ?

Quote Reply
Sorting Link ?
This is a text and code for sorting.

My question: What is the direct link for working this funktion ?

Default Sorting - relational mod (easy method)

A simple way of creating a default sort field and sort order would be to add the following to your .cfg file:

$sort_field ='3';
$sort_order = 'ascend'; OR: $sort_order = "descend';

Then just use the variable in your links, form, etc. This makes it very easy to change if your sort order, and you can easily use the same db.cgi files for various databases.

Werner

Quote Reply
Re: Sorting Link ? In reply to
YOu already have those options available to you thru the scripts. As indicated in the README text file included with the scripts, you can use sb=[field_number] (sort by) and so=[ascend/descend] (sort order) in creating your links within the database.

Your link would then become something like this:

<A HREF="$db_script_link_url?view_records=1&Title=soft&sb=3&so=ascend">



Quote Reply
Re: Sorting Link ? In reply to
Thank you Karen, you have allways a good support. I can learn from you. Thank you.

WernerW