Sorry for the late reply,
I understand the basics of an if-statement, just not this kind of if-statement.
Let me explain a little bit more.
The specific MySQL column options holds a value. This value is the sum of a number of form option that can be selected. These form options look like this (look how the values are built up).
<INPUT TYPE="checkbox" NAME="showemail" VALUE="1">
<INPUT TYPE="checkbox" NAME="showbirthday" VALUE="2">
<INPUT TYPE="checkbox" NAME="showhomepage" VALUE="4">
<INPUT TYPE="checkbox" NAME="online"VALUE="8">
<INPUT TYPE="checkbox" NAME="notifications" VALUE="16">
Example:
the 1st and last checkbox are checked.
the value of column options will be:
$showemail + showbirthday + showhomepage + online + notifications = 17
the if-statement:
if($row[options] & 128){
}
will return false. but,
if($row[options] & 16){
}
will return true (16 is the equivalent of checkbox 'notifications').
What I am trying to find out is how to interprete this kind of if-statement ($row[options] & 16) what does the '& 16' part exactly mean?
Thanks,
Raoul