|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2002-06-14 09:35 UTC] nadol at conecta dot com dot pl
dbase_get_record_with_names not working, when i'm using this function browser (IE) gives me message "cannot display page", dbase_get_record working fine PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Mon Nov 03 06:00:01 2025 UTC |
Simple example: <? $dbname="example.dbf"; $db = dbase_open($dbname , 0); //example.dbf fields: [ID][NAME]... $numRecords = dbase_numrecords($db); $numFields = dbase_numfields($db); for($index = 1; $index <= $numRecords; $index++) { $record = dbase_get_record_with_names($db, $index); print $record['NAME']; } ?> Executing this script cause massage "cannot display page" in browser (IE). Comment out linie with function dbase_get_record_with_names and executing this script causes no error. This work fine: <? $dbname="example.dbf"; $db = dbase_open($dbname , 0); //example.dbf fields: [ID][NAME]... $numRecords = dbase_numrecords($db); $numFields = dbase_numfields($db); for($indexr = 1; $indexr <= $numRecords; $indexr++) { for($indexf = 1; $indexf <= $numFields; $indexf++) { $record = dbase_get_record($db, $indexr); print $record[$indexf]; } } ?>