| 
	
 | 
 Posted by Nick Weisser on 03/23/06 00:01 
Hi there, 
 
I have to fetch some records from a dbase database. After enabling dbase  
support I can now open the dbase file and also read single record rows  
like so: 
 
$identifier = dbase_open('my.dbf', 0); 
$result = dbase_get_record($identifier, 0); 
print_r($result); 
 
This works fine! No problem at all. 
 
 
As soon as I want to loop through all of the dbase records I get no  
output at all. No error message, nothing, nada! Even with  
error_reporting(E_ALL); 
 
 
Here is my code: 
 
$identifier = dbase_open('my.dbf', 0); 
$numrows = dbase_numrecords($identifier); 
for ($i=0;$i<=$numrows;$i++) { 
	$result = dbase_get_record($identifier, $i) { 
	print_r($result); 
} 
 
 
Does anybody have any clue as to why this does not work? 
 
Cheers, 
Nick
 
  
Navigation:
[Reply to this message] 
 |