Yep, that would be the perfect solution, but, unfortunately, database
is not an option for this project. Thanks for looking! I did get a
solution though from another list.
Here is a working version:

http://veanndesign.com/sorting.php

compare it to the not working one:

http://veanndesign.com/test.php

Anyways, thanks again!

Anna

On 5/13/07, Richard Lynch <[EMAIL PROTECTED]> wrote:
If you are going to sort it by various fields, I'd just throw it into
a database...

That said, http://php.net/usort should be able to do whatever you want.

On Thu, May 10, 2007 2:18 pm, Anna Vester wrote:
> Hello all,
>
> I have a question concerning .CSV array sorting. I have tried googling
> for an answer and have tried different techniques, but nothing seems
> to works as I would like it to work. Here is my situation:
> Test file is located here: http://veanndesign.com/test.php
>
> I would like to be able to sort the output by the Time Zone (or any
> other fields). Here is how my code looks like:
> http://veanndesign.com/test.html
>
> I believe that I need to get all the data from the .csv file dumped
> into 1 array, and I guess I am struggling at that point. I have tried
> using foreach inside of the while loop, but it doesn't seem to work.
> So what is the best and/or right way to sort this type of data?
>
> Hopefully, this email makes sense.
>
> Thanks in advance.
>
> --
> Anna Vester
> Web Designer
> http://www.veanndesign.com
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>


--
Some people have a "gift" link here.
Know what I want?
I want you to buy a CD from some indie artist.
http://cdbaby.com/browse/from/lynch
Yeah, I get a buck. So?




--
Anna Vester
Web Designer
http://www.veanndesign.com

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

Reply via email to