小编rrr*_*ion的帖子

php mysql位字段

奇怪,我正在使用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

php mysql

3
推荐指数
1
解决办法
3515
查看次数

标签 统计

mysql ×1

php ×1