Etrange, j'utilise Apache + PHP avec Windows. php a traité les champs de bits de mysql comme nombre: c'est travail correct;PHP champs de bits mysql
$b = $row['bit_field']
if ($b == 1) {
echo 'ok';
}
avec CentOS et php 5.3.3 './configure' '--with-mysql' '--with-mcrypt' '--enable-mbstring' '--with-imap' « - avec-kerberos' '--with-imap-ssl' '--with-libjpeg' '--with-libpng' '--with-gd'mère
j'ai besoin
$b = $row['bit_field']
if (ord($b) == 1) {
echo 'ok';
}
Quelle option changer il?
- Thanx
Que contient '$ row [" bit_field "]'? –
* "Etrange, j'utilise Apache + PHP avec Windows." * - En effet. :-) – Tomalak
@Tomalak pah. Ce n'est plus 1999. Apache + Win fonctionne comme un charme :) –