File: /var/www/html/marcbase.com.br/web/android_connect/Check.php
<?php
$hostname_localhost ="dbmy0037.whservidor.com";
$database_localhost ="marcbase";
$username_localhost ="marcbase";
$password_localhost ="xuqe4jox";
$localhost = mysql_connect($hostname_localhost,$username_localhost,$password_localhost)
or
trigger_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";
}
?>