08-12-2010, 02:54 PM
|
#3 (permalink)
|
|
The Prestige
Join Date: Oct 2007
Location: Manchester, UK
Posts: 854
Thanks: 32
|
Yep, the modulo operator returns the remainder of division of one number by another.
The above code could be condensed slightly. Because PHP treats return values of anything other than False/Null or '0' etc as true, we can just do this:
__________________
mysql> SELECT * FROM `users` WHERE `users`.`clue` > 0;
Empty set (0.00 sec)
|
|
|
|