3
奇怪的是,我使用apache + php與windows。 PHP處理MySQL位域爲數字: 它的工作正確;php mysql位字段
$b = $row['bit_field']
if ($b == 1) {
echo 'ok';
}
在CentOS和PHP 5.3.3 '的./configure' '--with-MySQL的' '--with-mcrypt的' '--enable-MBSTRING' '--with-IMAP'「 - 與-Kerberos的--with-IMAP-SSL'--with-libjpeg的'--with-的libpng '--with-GD'
我需要
$b = $row['bit_field']
if (ord($b) == 1) {
echo 'ok';
}
什麼選項改變它?
- 感謝名單
'$ row [「bit_field」]'包含什麼? – 2010-10-17 11:57:00
*「奇怪,我正在使用apache + php與windows。」* - 確實。 :-) – Tomalak 2010-10-17 11:57:12
@Tomalak pah。現在不是1999年了。 Apache + Win的工作就像一個魅力:) – 2010-10-17 12:06:09