I am storing x and y as bits in mysql database, upon fetch the record using php fetch_assoc, the display is gobbled. And I can't find a way to test the value to see if it's true or false... I tried using if($val), if($val==true) if($val===true), if $val is false, all 3 tests still returns true. any idea? [x] => � [y] =>
Aşağıdaki cevap için teşekkürler, ben şimdi kullanın:
function mysql_bit($bit) { if(ord($bit) == 0 || ord($bit) == 48)return false; return true; }
mysql bit değeri ve (örneğin http isteği) düzenli dize / int değeri işlemek için hem.