Strange, I use apache + php with windows. php processed fields mysql bits as number: it works correctly;
$b = $row['bit_field']
if ($b == 1) {
echo 'ok';
}
with centos and php 5.3.3 './configure' '--with-mysql' '--with-mcrypt' '--enable-mbstring' '--with-imap' '--with-kerberos'' - with-imap-ssl '' --with-libjpeg '' --with-libpng '' --wd-gd '
I need
$b = $row['bit_field']
if (ord($b) == 1) {
echo 'ok';
}
Which option to change it?
- Thanx
source
share