$standingsfull=$DB_site->query("SELECT * FROM user WHERE wins!='0' & losses!='0' ORDER BY rating DESC");
Okay I have tried AND, & and &&, and neither work. The way it is now (with single &) it ignores the != on the right side of the &. With && it selects both of them (completely ignoring my !=, and with AND I get the same as &&. Anyone have any ideas?
For the standings, I don't want it to display people who havn't played any games, or there would be an extra thousand people in there inbetween the good/middle and the lower scored players.
For the standings, I don't want it to display people who havn't played any games, or there would be an extra thousand people in there inbetween the good/middle and the lower scored players.
It's difficult to understand your explanation without more background info and possibly table structure.
For the standings, I don't want it to display people who havn't played any games, or there would be an extra thousand people in there inbetween the good/middle and the lower scored players.
The you should be using OR, not AND - otherwise someone who has never won (or never lost) will not be displayed.
Personally, I would use this ;
[sql]DB_site->query("SELECT * FROM user WHERE wins>0 OR losses>0 ORDER BY rating DESC");[/sql]