Update PHP code to work with BIT MySQL fields