Guest User

Untitled

a guest
Jan 21st, 2018
723
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.47 KB | None | 0 0
  1.     public function CheckUserLogOn ( $username, $password ) {
  2.         if ($stmt = $mysqli->prepare("SELECT username, password FROM fish WHERE username=$username password=$password") ) {
  3.             $stmt->bind_result($username, $password);
  4.            
  5.             try {
  6.                 $stmt->execut();
  7.             } catch (Exception $e) {
  8.                 echo $e->getTraceAsString();
  9.             }
  10.  
  11.            
  12.          
  13.  
  14.              $stmt->close();
  15.         }
Add Comment
Please, Sign In to add comment