function amr_display_a_page($linessaved, $icols, $cols, $ahtm) { $html = ''; foreach ($linessaved as $il => $line) { /// have index at this point $id = $line['ID']; /* always have the id - may not always print it */ $user = amr_get_userdata($id); $user = amr_add_data_in_line_to_user_object($line, $user); // in case we wnt to use it // need this data for links, etc // hmmm not sure about this, what if want other values in line? // how to accomodate both line data and maybe other user data ? $html .= amr_display_a_line($line, $icols, $cols, $user, $ahtm); } return $html; }
function amr_display_a_page($linessaved, $icols, $cols, $ahtm) { $html = ''; foreach ($linessaved as $il => $line) { /// have index at this point $id = $line['ID']; /* always have the id - may not always print it */ $user = amr_get_userdata($id); $html .= amr_display_a_line($line, $icols, $cols, $user, $ahtm); } return $html; }