'; $data = $_GET['data']; if (strpos($data,'*:*')) { $room_array = explode('*:*',$data); } else { $room_array[0] = $data; } $total_rooms = count($room_array); $room_count = 0; while ($room_count < $total_rooms) { $room_info_array = explode ('*;*',$room_array[$room_count]); $room_name = $room_info_array[0]; $item_info = $room_info_array[1]; if ($room_name != '') { $html_output .= '

' . $room_name . '

'; } $items = ''; if (strpos($item_info,'*,*')) { $items = explode('*,*',$item_info); } else { $items[0] = $item_info; } $total_items = count($items); $item_count = 0; $items_html = ''; while ($item_count <= $total_items) { $item_info = explode('*-*',$items[$item_count]); $item_name = $item_info[0]; $item_description = $item_info[1]; $item_value = $item_info[2]; $item_photo = $item_info[3]; if ($item_photo != '') { $image = '' . $item_name . ''; } else { $image = ''; } if ($item_name != '' || $item_description != '' || $item_photo != '') { if ($item_value == '') { $item_value = '(none specified)'; } else { $item_value = '$' . $item_value; } $items_html .= ' ' . $item_name . ' ' . $item_description . ' ' . $item_value . ' ' . $image . ' '; } $item_count++; } if ($items_html != '') { $html_output .= '' . $items_html . '
Item Description Value Image

'; } $room_count++; } ?> My Home Inventory This home inventory was created on