$query_search = 'INSERT INTO tbl_user(username,password) VALUES("'.$_GET['usernamee'].'", "'.$_GET['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"; } ?>
lorsque j'execute mon application android tjrs il m'affiche juste au dessous du bouton login ce message :
Reponse from PHP:<br/> <b> Notice</b>:Undefined index:username in<b>C:\Documents and Settings\Administrateur\Bureau\streaming\check.php</b> on line <b>13</b></br> <br/> <b> Notice</b>:Undefined index:password in<b>C:\Documents and Settings\Administrateur\Bureau\streaming\check.php</b> on line <b>13</b></br> No database selected
A voir également:
Communication entre android et php/mysql
Android studio mysql php - Meilleures réponses
Android studio php mysql login - Meilleures réponses