Yep, short circuiting - it is selecting an id that matches $playerid.
Not sure what you mean by between - I'm checking two different values (skill and skillpoints)?
I'm guessing I might have to do something like have two DB query lines, one with skill and one with skillpoints. Then randomly choose which line I use - and if it doesn't come up with a result, use the other line.
Or might be able to use
brackets?
Edit: Yeah, brackets seem to work! No more selecting the current player (ah, I can finally stop beating myself up about it...)
I'm coding in a sort of attack skill system where one of your skills will be weak (or all of your skills will be average) and it actually shows an opponent before you fight them, so you have a chance of remembering which is their weak skill. Ohh, almost turn based combat (not that I didn't know how to do that before, I just didn't see a point).