Created/modified on | Submit a comment
0) { $prev_id = $current_id - 1; $prev = $comics[$ids[$prev_id]]; } // get the next cartoon if exists if ($current_id < ($num_ids - 1)) { $next_id = $current_id + 1; $next = $comics[$ids[$next_id]]; } } // Get the latest comic ID else { $curr = $comics[$ids[$num_ids - 1]]; if (($num_ids - 1) > 0) $prev = $comics[$ids[$num_ids - 2]]; } ?>
Comment(s)
Comment by at | #