Sujet : Connexion Android-Studio/MySQL
<?php
$con = mysql_connect("sql.toile-libre.org","(mon ID)","(mon MDP)");
mysql_select_db("(nom de ma base)", $con);
$req=mysql_query("SELECT * FROM joueurs WHERE poste='".$_REQUEST['GARDIEN']."'");
while($row=mysql_fetch_assoc($req))
{
$output[]=$row;
}
print(json_encode($output));
mysql_close();
?>