in reply to PERL CGI Newbie Question

Easy - in your SQL, add the line
# $field is the database table column that you want to sort by ORDER BY $field
after your select and condition statements.

Everything you could ever want to do ever (well, maybe) with Sybase (SQL-wise) is usefully online - the Transact SQL manual is here.

Hope that helps ..
-- Foxcub

Replies are listed 'Best First'.
Re: Re: PERL CGI Newbie Question
by cosmicsoup (Beadle) on Dec 13, 2002 at 20:28 UTC
    I'm sorry, I didn't clarify. I would like to do the sort via an array or a hash. I'm trying to learn how to do more things in perl for better understanding.

    Thanks again,
    Louis