so, I figured I would be smart and throw everything into the database so I could pull it all out as an associative array, but then, i run into this small (major) problem...
i have a list (array) of clients set up as
$client[$x]['shipping_info'] = explode(":", $row['shipping_info']);
$client[$x]['billing_info'] = explode(":", $row['billing_info']);
$client[$x]['order_id'] = $row['order_id'];
billing and shipping info being a delimited field, so, 0 => the name, 1 => the phone number, etc. straight forward enough and its worked marvellously until Im asked to write a script to sort it by name of the billing info. Im kinda a noob here, so, Im thinking that the better way to do this is to sort the array, not SQL's ORDER BY.
my question is... I want to sort the array, but keep the data in relevance to eachother. I dont want to (mix up) the data, but i need to sort the entire client array according to either:
alpahbetically: $client[$x]['billing_info'][0] or
by order id: $client[$x]['order_id'];
help?
please?