Help for this page

Select Code to Download


  1. or download this
    my $SQL    = "SELECT username, password FROM user WHERE username =    
    + '$username'";
    my @row;
    @row = $dbh->selectrow_array($SQL);
    
  2. or download this
    my $sth = $dbh->prepare("SELECT username, password FROM user WHERE    
    +  username = ?");
    
    ...
    # characters removed by the DBI
    
    my @row = $sth->fetchrow;