Ciao a tutti, io ho preso dei dati dal data base, il codice è moltoo lungo quindi vi faccio vedere solo la parte del lezionamento:

Codice PHP:
//seleziono tutto
mysql_fetch_row($result2);
$sql_altri_villi ="Select
id_slot,
id_villaggio,
id_giocatore,
tipo_terreno,
nome_giocatore,
nome_villaggio
FROM mappa
WHERE x = 
$a_x1 AND y = $a_y1 OR x =$a_x2 AND y = $a_y2  OR $a_x3 AND y = $a_y3 OR  $a_x4 AND y = $a_y4 OR $a_x5 AND y = $a_y5 OR
          
$b_x1 AND y = $b_y1 OR x =$b_x2 AND y = $b_y2  OR $b_x3 AND y = $b_y3 OR  $b_x4 AND y = $b_y4 OR $b_x5 AND y = $b_y5 OR
          
$c_x1 AND y = $c_y1 OR x =$c_x2 AND y = $c_y2  OR $c_x3 AND y = $c_y3 OR  $c_x4 AND y = $c_y4 OR $c_x5 AND y = $c_y5 OR
          
$d_x1 AND y = $d_y1 OR x =$d_x2 AND y = $d_y2  OR $d_x3 AND y = $d_y3 OR  $d_x4 AND y = $d_y4 OR $d_x5 AND y = $d_y5 OR
          
$e_x1 AND y = $e_y1 OR x =$e_x2 AND y = $e_y2  OR $e_x3 AND y = $e_y3 OR  $e_x4 AND y = $e_y4 OR $e_x5 AND y = $e_y5";
 
$result2 mysql_query($sql_altri_villi);
$array2 mysql_fetch_row($result2); 
io ho questa domanda ho messo molti or perche deve selezionarmi tutti questi campi:
id_slot,
id_villaggio,
id_giocatore,
tipo_terreno,
nome_giocatore,
nome_villaggio

in tutti i where, richiamare WHERE x = $a_x1 AND y = $a_y1 è facile basta fare:
(seleziono id slot)
Codice PHP:
echo"$array2[0]"
ma se invece voglio selezionare il secondo where?
questo:
OR x =$a_x2 AND y = $a_y2

come faccio?
grazie in anticipo grazie