I have 2 tables affilie and avantage and every one has an attribute named id, I made a query using left join. how I can distinguish those tow id having the same name when I want to use them.
$query="SELECT * FROM affilie af left join avantage av on af.id = av.id WHERE id='".$_GET['id']."' ";
$req = mysql_query($query) or die(mysql_error());
$data=mysql_fetch_assoc($req);