Answers

  • Brainly User
2015-03-08T15:54:56+05:30
Yes it is possible 
OK we will start now.First create a fresh project named “AndroidPHP”.

Copy this code to check.php?123456789101112131415161718192021222324<?php$hostname_localhost ="localhost";$database_localhost ="mydatabase";$username_localhost ="root";$password_localhost ="";$localhost = mysql_connect($hostname_localhost,$username_localhost,$password_localhost)ortrigger_error(mysql_error(),E_USER_ERROR); mysql_select_db($database_localhost, $localhost); $username = $_POST['username'];$password = $_POST['password'];$query_search = "select * from tbl_user where username = '".$username."' AND password = '".$password. "'";$query_exec = mysql_query($query_search) or die(mysql_error());$rows = mysql_num_rows($query_exec);//echo $rows; if($rows == 0) {  echo "No Such User Found";  } else  {    echo "User Found";
0