This is one of the wierdest errors I've ever got, it must be something really stupid that I'm overlooking...
I'm getting a wrong value when I logically and two numbers.
This are the results I'm getting:
Tmpprod is 1 and products is 1 -> result is 1
Tmpprod is 2 and products is 1 -> result is 0
Tmpprod is 4 and products is 1 -> result is 0
Tmpprod is 8 and products is 1 -> result is 0
Tmpprod is 16 and products is 1 -> result is 1
Tmpprod is 32 and products is 1 -> result is 1
Tmpprod is 64 and products is 1 -> result is 0
Tmpprod is 128 and products is 1 -> result is 1
This is how I'm calculating result:
$result = ($products & $tmpprod[0])
can anyone help??? I'm really lost.