Re: [PHP-WIN] Array Sorting Help

2004-02-16 Thread Svensson, B.A.T. (HKG)
On Mon, 2004-02-16 at 17:49, Herhuth, Ron wrote: > What I would like to do is to sort the results based on the > "percentageMatch" Obviously my simple flat array will not do the trick. Why don't you just sort them in the database before returning the result set? SELECT ... FROM ... WHERE ... OR

[PHP-WIN] Array Sorting Help

2004-02-16 Thread Herhuth, Ron
Before I begin I must admit I am a bit new to arrays so please be gentle. Here is my situation: I am building an app that queries the database and brings back a result set. This resultset contains last name, first name and id. I am then using the "similar_text" function to weed out only those