Help for this page

Select Code to Download


  1. or download this
    my ($img_id) = $str =~ m/img_id=(\d+)/;
    my $prev_id = $img_id - 1;
    my $next_id = $img_id + 1;
    
  2. or download this
    "select WHATEVER from TABLE where img_id in ($prev_id, $img_id, $next_
    +id)"