Ciao a tutti! ho fatto una join su due tabelle, funziona ma ha un problema...
il problema sta nel fatto che le due tabelle hanno entrambe la colonna id e a me interessano tutte e due me riesco ad accedere solo ad una
come faccio in questo codice a stampare sia l'id attacchi che l'id dotazione?Codice PHP:
$dati=mysql_query("SELECT * FROM Dotazione as D, Attacchi as A WHERE D.idAttacco=A.id AND D.CodiceFb=$uid");
$rs=mysql_fetch_array($dati);
echo $rs['id'];
grazie![]()