I see
Warning: Invalid argument supplied for foreach()
Heres the line: foreach ($jobs_by_category as $category_name => $job_items)
and here's the rest of my code.
function display_job_list ()
{
global $db;
global $jobs_by_category;
global $category_name;
global $job_items;
global $item;
foreach ($jobs_by_category as $category_name => $job_items)
{
// display job category
output_div ('job_category', $category_name);
// print_r($category_name);
// browse through job items
foreach ($job_items as $item)
{
// output the 3 fields of this item
output_div ('job_qty' , $item['item_quantity' ]);
output_div ('job_unit' , $item['item_unit' ]);
output_div ('job_description', $item['line_description']);
}
}
}