You could either sort in PHP after you return the resultset, or you could
use a sort option in your sql query. In MySQL, sorting is easy. I imagine it
should be just as easy in any other db.

Unless you are sorting the resultset by something odd, it's probably best to
have the database sort it. Make the database do what it was designed to do
and take a load off PHP.

-Dash

-----Original Message-----
From: T B [mailto:[EMAIL PROTECTED]] 
Sent: Wednesday, December 11, 2002 9:32 AM
To: [EMAIL PROTECTED]
Subject: [PHP-WIN] ordering results


i have a database of weekly results and use a php script to compute some
totals.

how would i go about ordering the totals?

thanks,

t



-- 
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

-- 
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to