need some help with arrays...
Posted: Tue Aug 22, 2006 5:56 pm
hey..
i need some help with arrays.
here's what i need to do...
-i have prices stored in a db.
-i would like to have 2 arrays.
-i need to store the price in one array then the item name in another array.
-then i need to sort the array by price starting from the highest price to the lowest price.
can someone help?!
basically i need a general idea of..
1. how to put items in an array from a loop and
2. how to sort and array by the price.
thanks!
Chris
i need some help with arrays.
here's what i need to do...
-i have prices stored in a db.
-i would like to have 2 arrays.
-i need to store the price in one array then the item name in another array.
-then i need to sort the array by price starting from the highest price to the lowest price.
can someone help?!
basically i need a general idea of..
1. how to put items in an array from a loop and
2. how to sort and array by the price.
thanks!
Chris