Help for this page

Select Code to Download


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