奇怪,我正在使用apache + php与windows.php处理mysql位字段为数字:它的工作正确;
$b = $row['bit_field']
if ($b == 1) {
echo 'ok';
}
Run Code Online (Sandbox Code Playgroud)
与centos和php 5.3.3'./configure'' - with-mysql'' - with-mcrypt'' - enable-mbstring'' - with-imap'' - with-kerberos'' - with-imap-ssl'' - with-libjpeg'' - with-libpng'' - with-gd'
我需要
$b = $row['bit_field']
if (ord($b) == 1) {
echo 'ok';
}
Run Code Online (Sandbox Code Playgroud)
什么选择改变它?
- Thanx