I can't seem to get the following select statement to work.
$GetData = mysql_query ("select
year,
SUM(wlt='W') AS win
from games
where team1 = '$team' and win > '9'
group by year
order by win DESC");
I think the problem has to do in the where statement with the (and win > '9') when I try to limit the listing to 10 wins or more. The select statement is not working with the addition of the 'W' in the games database.
Does anyone know what I am doing wrong?
David