Guest User

Untitled

a guest
Mar 8th, 2018
90
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.57 KB | None | 0 0
  1. 45 if ( $input == 2 ){
  2. 46 print "Listing the times an account has logged in.\n";
  3. 47 print "Enter searched user: ";
  4. 48 chomp($loginuser=<STDIN>);
  5. 49 print "Enter searched password: ";
  6. 50 chomp($loginpassword=<STDIN>);
  7. 51 $logintime = $dbh->prepare("SELECT * FROM usersDB WHERE username='$loginuser' AND '$loginpassword' ");
  8. 52 $logintime->execute();
  9. 53 print "Successful in finding the following users.\n";
  10. 54 while (@results = $logintime->fetchrow_array())
  11. 55 {
  12. 56 print "user: $results[0]\n";
  13. 57 }
  14. 58
  15. 59
  16. 60 }
Add Comment
Please, Sign In to add comment