php mysql bit alanları

0 Cevap php

Strange, i am using apache + php with windows. php processed mysql bit fields as number: it's work correct;

$b = $row['bit_field'] 
if ($b == 1) {
  echo 'ok';
}

ile-mysql '- CentOS ve php 5.3.3'. / configure 'ile' - with-mcrypt '- enable-Mbstring' '- with-imap' - with-kerberos '- ile-imap-ssl '- with-libjpeg' - with-libpng'nin '- with-gd'

i need

$b = $row['bit_field'] 
if (ord($b) == 1) {
  echo 'ok';
}

Ne seçenek onu değişiyor?

-- Thanx

0 Cevap