Advertisement
Guest User

Untitled

a guest
May 21st, 2016
686
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.83 KB | None | 0 0
  1. public function autheticate($username, $password)
  2. {
  3.  
  4. $query = "SELECT U.username, U.password FROM users as U WHERE U.username = ? AND U.password = ?";
  5.  
  6. if($stmt = $this->conn->prepare($this->conn, $query))
  7. {
  8. $stmt->bind('ss',$username, $password);
  9.  
  10. $stmt->execute();
  11.  
  12. $stmt->close();
  13.  
  14. return true;
  15. }
  16.  
  17. // print_r($this->conn);
  18. }
  19.  
  20. mysqli Object
  21. (
  22. [affected_rows] =>
  23. [client_info] =>
  24. [client_version] => 50547
  25. [connect_errno] => 0
  26. [connect_error] =>
  27. [errno] =>
  28. [error] =>
  29. [error_list] =>
  30. [field_count] =>
  31. [host_info] =>
  32. [info] =>
  33. [insert_id] =>
  34. [server_info] =>
  35. [server_version] =>
  36. [stat] =>
  37. [sqlstate] =>
  38. [protocol_version] =>
  39. [thread_id] =>
  40. [warning_count] =>
  41. )
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement