Stuck on creating dynamic array
Posted: Wed Mar 19, 2008 9:06 pm
I have the following code:
I would really like to generate this from a mysql table. I know this easy but so far I haven't been able to recreate it.
Code: Select all
$status_codes = array(
'1'=>'Filed ',
'2' => 'Not Assigned',
'3' => 'Not Assigned',
'4' => 'Not Assigned',
'5' => 'Not Assigned',
'6' => 'Not Assigned',
'7' => 'Not Assigned',
'8' => 'Not Assigned',
'9' => 'Not Assigned',
'10' => 'Batched',
'11' => 'At Pulling Station',
'12' => 'ON HOLD PENDING ACTION',
'13' => 'Sorting',
'14' => 'Batched for Mon',
'15' => 'Batched for Tues',
'16' => 'Batched for Wed',
'17' => 'Batched for Thurs',
'18' => 'Being Pulled',
'19' => 'Delayed',
'20' => 'Order Shipped',
'21' => 'Canceled',
'25' => 'Invoiced',
);