Guest User

Untitled

a guest
Mar 8th, 2018
134
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.50 KB | None | 0 0
  1. 59 if ( $input == 3 ) {
  2. 60 print "Log in/out of an exiting account.\n";
  3. 61 print "Login user: ";
  4. 62 chomp($loginuser=<STDIN>);
  5. 63 print "Login password: ";
  6. 64 chomp($loginpassword=<STDIN>);
  7. 65 $loginquery = $dbh->prepare("SELECT * FROM usersDB WHERE username='$loginuser' AND password='$loginpassword' ");
  8. 66 $loginquery->execute();
  9. 67 while (@results = $loginquery->fetchrow_array())
  10. 68 {
  11. 69 print "user: $results[0] time: $results[1]\n";
  12. 70 }
  13. 71 }
Add Comment
Please, Sign In to add comment