Help for this page

Select Code to Download


  1. or download this
    if(!$username){
     relogin("Enter your username");
    }elsif(!$password){
     relogin("Enter your password");
    }
    
  2. or download this
    if (!$username or !$password) {
        relogin('Username/Password pair not valid');
    }
    
  3. or download this
    my $sth = $dbh->prepare("SELECT * FROM info WHERE pword='$password'");
    $sth->execute() or die "Couldnt do it: $!\n"
    
  4. or download this
    my $sth = $dbh->prepare('SELECT * FROM info WHERE pword=?');
    $sth->execute($password) or die "Couldnt do it: $!\n"