Help for this page
my $sql = "SELECT UID FROM news";
while (my $newUID = $sth->fetchrow) { ... $nextID = $newUID; } print p(["Previous = |$prevID|","Current = |$currID|","Next = |$nextID +|"]);
0 #this is a counter value to escape the while loop after finding the +value of $nextID ... Current = || Next = |2|