Help for this page

Select Code to Download


  1. or download this
    $arrayRef = $dbh->selectrow_arrayref("SELECT password FROM table WHERE
    + username = '$username'") or die "Error: " . $dbh->errstr;
    
  2. or download this
    $sth = $dbh->prepare("SELECT password FROM table WHERE userName = '$us
    +erName'") or die $dbh->errstr;
    $result = $sth->execute();
    print "There were no rows returned\n" if $result == 0;