Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

can not read dbf #46

Closed
ghopretz opened this issue Sep 5, 2017 · 2 comments
Closed

can not read dbf #46

ghopretz opened this issue Sep 5, 2017 · 2 comments

Comments

@ghopretz
Copy link

ghopretz commented Sep 5, 2017

i have dbf file with 223 columns and 902 records.
i use this library to read in php, but it can not read the records of that dbf file and only can read the columns of that dbf file. why?

@ghopretz
Copy link
Author

ghopretz commented Sep 5, 2017

Export Sakernas2017 smt taput.zip
this is my file

@gadget00
Copy link

hi @ghozien ,

did you follow the example? You need to open the DBF and place a loop in order to read the records:

use XBase\Table;

$table = new Table(dirname(__FILE__).'/test.dbf');

while ($record = $table->nextRecord()) {
    echo $record->my_column; //THIS LINE PRINTS THE CONTENT OF EACH COLUMN OF THE RECORD

}

@gam6itko gam6itko closed this as completed Feb 9, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants