Help for this page

Select Code to Download


  1. or download this
    my $sth = $dbh->prepare("SELECT stuff FROM table");
    $sth->execute;
    my @data = $sth->fetchrow_array;
    
  2. or download this
    print "<select name = 'test'>";
    foreach my $entry ( @data ) {
      print "<option value = '$entry'>$entry</option>";
    }
    print "</select>";