Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 45 if ( $input == 2 ){
- 46 print "Listing the times an account has logged in.\n";
- 47 print "Enter searched user: ";
- 48 chomp($loginuser=<STDIN>);
- 49 print "Enter searched password: ";
- 50 chomp($loginpassword=<STDIN>);
- 51 $logintime = $dbh->prepare("SELECT * FROM usersDB WHERE username='$loginuser' AND '$loginpassword' ");
- 52 $logintime->execute();
- 53 print "Successful in finding the following users.\n";
- 54 while (@results = $logintime->fetchrow_array())
- 55 {
- 56 print "user: $results[0]\n";
- 57 }
- 58
- 59
- 60 }
Add Comment
Please, Sign In to add comment