RE: [PHP] sorting question

2003-11-18 Thread Ed.Lazor
The date field used from each table differs based on certain conditions that PHP is testing for. It would be great to have MySQL do that, but is that possible? Here's some additional info that might help. The first table includes fields Status, DateAdded, DateShipped, DateCompleted. If Stat

RE: [PHP] sorting question

2003-11-18 Thread Chris W. Parker
[EMAIL PROTECTED] on Tuesday, November 18, 2003 3:25 PM said: > I used PHP to combine several MySQL queries into a single array and > now I'm trying to sort the results by one of the named columns. Any reason you can't turn all those queries into one and sort by da

[PHP] sorting question

2003-11-18 Thread Ed.Lazor
I used PHP to combine several MySQL queries into a single array and now I'm trying to sort the results by one of the named columns. Is there an easy way to do this? asort didn't seem to do the trick, but maybe I'm not using it correctly. Here's the commands: asort($T); reset($T); foreach($T