Page 1 of 1

dbase functionality to parse .dbf files, not working.

Posted: Thu Jan 17, 2008 2:39 pm
by nickelnick
test.php reads:

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);
?>
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.

Re: dbase functionality to parse .dbf files, not working.

Posted: Thu Jan 31, 2008 4:57 pm
by nickelnick
bump