Computer Science, asked by chintuvineeth, 1 year ago

Is it possible to create login page in android application without using server database?


Anonymous: pls mark it as best

Answers

Answered by Anonymous
0
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";
Similar questions