I have this code. the problem is that the array of "type" is not shown...what is wrong?
foreach($arr_items as $arr_item) { $type_array = array (1 => 'Website', 2 => 'PDF', 3 => 'Movie', 4 => 'CD', 5 => 'Interactive'); print ($arr_item[$type_array[$type]]); }
where are you setting $type?
foreach($arr_items as $type=>$arr_item) { $type_array = array (1 => 'Website', 2 => 'PDF', 3 => 'Movie', 4 => 'CD', 5 => 'Interactive'); print ($arr_item[$type_array[$type]]); }
If you're going to steal code, the least you can do is get it right. =)
I solved the problem, if forget to rename a varibale. it's not stolen code, it's my own!