Reply to dbase_get_record not looping

Your name:

Reply:


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

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация