Help for this page

Select Code to Download


  1. or download this
    use strict;
    use warnings;
    
  2. or download this
    use DBI;
    my $driver = "mysql"; 
    ...
    ## my $dbh is defined twice!!!
    my $sth = $dbh->prepare("SELECT UserEmail,UserPassword FROM pj_user wh
    +ere UserEmail=? and UserPassword=?");
    $sth->execute($UserEmail,$UserPassword);