Free help with homework

Why join Brainly?

  • ask questions about your assignment
  • get answers with explanations
  • find similar questions

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

Comment has been deleted
pls mark it as best


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 0 0
The Brain
  • The Brain
  • Helper
Not sure about the answer?
Learn more with Brainly!
Having trouble with your homework?
Get free help!
  • 80% of questions are answered in under 10 minutes
  • Answers come with explanations, so that you can learn
  • Answer quality is ensured by our experts