[PHP-DB] Sorting Multidimensional Array

2006-10-31 Thread Keith Spiller
Hi, RE: Sorting Multidimensional Array I'm trying to sort a multidimensional array. The data was taken from a mysql query: $myrow = mysql_fetch_row($result) { query[] = $myrow; } The purpose is to retrieve the table data and manually add a record, then sort ASC by the startdate which is

Re: [PHP-DB] Sorting Multidimensional Array

2006-10-31 Thread Chris
Keith Spiller wrote: Hi, RE: Sorting Multidimensional Array I'm trying to sort a multidimensional array. The data was taken from a mysql query: $myrow = mysql_fetch_row($result) { query[] = $myrow; } The purpose is to retrieve the table data and manually add a record, then sort ASC by

Re: [PHP-DB] Sorting Multidimensional Array

2006-10-31 Thread Dave W
You should be able to use usort() On 10/31/06, Keith Spiller [EMAIL PROTECTED] wrote: Hi, RE: Sorting Multidimensional Array I'm trying to sort a multidimensional array. The data was taken from a mysql query: $myrow = mysql_fetch_row($result) { query[] = $myrow; } The purpose is to