Help for this page

Select Code to Download


  1. or download this
    my $sth = $dbh->prepare("SELECT * FROM $users_table WHERE username = '
    +$username' AND user_password = '$userpass'");
            $sth->execute;
    
  2. or download this
    my $sth = $dbh->prepare("SELECT * FROM $users_table WHERE username = ?
    + AND user_password = ?");
            $sth->execute($username,$userpass) or die $dbh->errstr;