";*/ } /*next($xlist);*/ //print_r($xlist); //$xlist = array($result); $item = key($xlist); $current_key = $row_rs_image['imgID']--; reset($xlist); while ( $item != current($xlist) ) { next($xlist); } //$xlist_current = $xlist[$current_key]; if (isset($xlist[$current_key+1])) { $xlist_next = $xlist[$current_key]; // get the next item if there is } else { $xlist_next = $xlist[count($xlist)-1]; // if not take the last (this means this is the end of the array) } if (isset($xlist[$current_key--])) { $xlist_prev = $xlist[$current_key-1]; // get the previous item if there is } else { $xlist_prev = $xlist[0]; // if not take the first item (this means this is the beginning of the array) } ?> Children of Eldair - Online comic by Jemma Young and Rachel Oaks.

Number 2!

Hey! Look what you found! It's an alternate script!