Guest User

Untitled

a guest
Apr 16th, 2016
66
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.46 KB | None | 0 0
  1. // include db connect class
  2. require_once __DIR__ . '/../Android/db_connect.php';
  3.  
  4. // connecting to db
  5. $db = new DB_CONNECT();
  6.  
  7. $username = $_GET['username'];
  8. $password = $_GET['password'];
  9. echo $username;
  10. echo $password;
  11. $result = mysqli_query($con,"SELECT * FROM user where Username='$username' and Password='$password'");
  12. $row = mysqli_fetch_array($result);
  13. $data = $row[0];
  14. echo $result;
  15. echo $row;
  16. echo $row[0];
  17.  
  18. if($data){
  19. echo $data;
  20. }
  21. mysqli_close($con);
  22. ?>
Add Comment
Please, Sign In to add comment