Salve a tutti, ho questa query mysql
Questo è il risultato:codice:select count(m.id) as matchnumber, t.id, t.name, m.roundinfo from tournament as t join matchlist as m on (m.tournament_id = t.id) where m.date >= '".date("Y-m-d")."' $where group by t.id, m.roundinfo order by m.roundinfo asc
Le mie domande sono:Codice PHP:Array
(
[0] => Array
(
[matchnumber] => 6
[id] => 34
[name_en] => Torneo 1
[roundinfo] => 1
)
[1] => Array
(
[matchnumber] => 10
[id] => 33
[name_en] => Torneo 2
[roundinfo] => 1
)
[2] => Array
(
[matchnumber] => 10
[id] => 33
[name_en] => Torneo 2
[roundinfo] => 2
)
)
1. Volevo mettere matchnumber > di 5 ma mi dice che non esiste la colonna matchnumber
2. Vorrei avere 1 solo "roundinfo", quindi indice "2" non dovrebbe esserci.
Grazie,
Antonio

Rispondi quotando