1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30
| <?php
$hostname_localhost ="xxx.mysql";
$database_localhost ="xxxx";
$username_localhost ="xxxx";
$password_localhost ="xxxx";
$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 table 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 "Aucun utilisateur trouvé";
}
else {
echo "utilisateur trouvé";
// ici que je dois lancer l'installation de mon apk
//
}
?> |
Partager