dbase functionality to parse .dbf files, not working.
Posted: Thu Jan 17, 2008 2:39 pm
test.php reads:
Is something different about this dbf that i cant parse it correctly? Am I using the wrong key in the row array? If you can help me, it would be awesome. Thanks in advance.
Code: Select all
<?php
$af = 'EMP.DBF';
$db = dbase_open($af, 0);
if ($db) {
$record_numbers = dbase_numrecords($db);
echo "G rec cnt => $record_numbers<br>";
for ($i = 1; $i <= $record_numbers; $i++) {
$row = dbase_get_record_with_names($db, $i);
echo $row['CHITNAME'];
}
}
dbase_close($db);
?>