$q = "SELECT * FROM `games` WHERE `sport` = 'Football' && `hometeam` = '$r[name]' OR `visitorteam` = '$r[name]'";
What I am looking for is only games where the sport is football. and the team i sent to it. I know I am getting the right team and everything in the array ($r) because I have it displaying some information above and it works just fine. I believe the problem lies in the && and ||. I have tried all kinds of different orders to put them in (ie && ||, AND ||, && OR, etc.) So can you please tell me exactly how this should be set up.
Thanks in advance!
