|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2001-10-13 10:49 UTC] sniper@php.net
[2003-01-24 22:26 UTC] hbrindis at siscomx dot com
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Thu Dec 04 08:00:01 2025 UTC |
Reading the boolean fields from a dbase database does not work. I cannot submit a dbase file example but is easy to see whenever your dbase file has a boolean field the returned field is equal with 0 regardless of the value of the dbase field. I used a simple loop to read all records from the dbase file. $dbf=dbase_open("/tmp/dbase_file", 0)); $num_rows=dbase_numrecords($dbf); $nf = dbase_numfields($dbf); while ( $j<$num_rows) { $k=0; $rec=dbase_get_record($dbf, $j); while($k < $nf) { print "$rec[$k],"; $k++; } $j++; print "<br>"; } Any boolean value read by dbase_get_record returns 0 which is wrong.