help sorting data ... using PHP and/or MySQL
Posted: Wed Jul 25, 2007 3:57 pm
This may sound absolutely impossible but I figured Id rather ask.
Basically I need to write a PHP function/algorithm that displays data from a table and order it very specifically. There are many fields and the table has about 200 total entries. Only certain pieces of it will be displayed at a time but there needs to be a specific order to how its displayed. If it was just alphabetically or asc/desc it doesn't work.
Is there any way to order it according to an array? I have no idea writing a complicated function I just am not sure where I would find the resources to figure it out.
Any ideas
Basically I need to write a PHP function/algorithm that displays data from a table and order it very specifically. There are many fields and the table has about 200 total entries. Only certain pieces of it will be displayed at a time but there needs to be a specific order to how its displayed. If it was just alphabetically or asc/desc it doesn't work.
Is there any way to order it according to an array? I have no idea writing a complicated function I just am not sure where I would find the resources to figure it out.
Any ideas