Help for this page

Select Code to Download


  1. or download this
    my $sth = $dbh->prepare("SELECT something WHERE field=?");
    for (@list_of_stuff) {
      $sth->execute($_);
      push @results,$sth->fetchrow_arrayref();
    }
    
  2. or download this
    for (@list_of_stuff) {
      my $sth = $dbh->prepare("SELECT something WHERE field=".$dbh->quote(
    +$_));
      $sth->execute();
      push @results,$sth->fetchrow_arrayref();
    }