Morgoth
08-10-2003, 08:17 AM
Hello,
I need to sort two fields that come out of the database, the first field is to tell me if I should run the rest of the code or not, and the second field is the information I want to display.
The first field is a boolean, and since I am checking to see if any of the fields equal false, I will sort the field. If the first field sorted in ASCENDING ORDER equals 1 Then I don't do the script, else if the first field sorted in ASCENDING ORDER equals 0 Then I will run the script.
Inside the script I need to get the information out of it in alphabetical order.
I can only do one sql statement saying "..ORDER BY ___ ASC"
How can I make the information in the script line up in alphabetical order?
Thanks for any input you can give me that puts me on my way to solving my problem.
I need to sort two fields that come out of the database, the first field is to tell me if I should run the rest of the code or not, and the second field is the information I want to display.
The first field is a boolean, and since I am checking to see if any of the fields equal false, I will sort the field. If the first field sorted in ASCENDING ORDER equals 1 Then I don't do the script, else if the first field sorted in ASCENDING ORDER equals 0 Then I will run the script.
Inside the script I need to get the information out of it in alphabetical order.
I can only do one sql statement saying "..ORDER BY ___ ASC"
How can I make the information in the script line up in alphabetical order?
Thanks for any input you can give me that puts me on my way to solving my problem.