Bug #17762 Updated: dbase_get_record_with_names not working

From: Date: Sat, 15 Jun 2002 23:46:05 +0000
Subject: Bug #17762 Updated: dbase_get_record_with_names not working
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-10518@lists.php.net to get a copy of this message
ID: 17762 Updated by: sniper@php.net Reported By: nadol@conecta.com.pl -Status: Open +Status: Feedback Bug Type: dBase related Operating System: Linux RedHat PHP Version: 4.2.1 New Comment: It's kinda hard to test this since I don't have that example.dbf file. Could you provide that too? (put it somewhere where it can be downloaded and add the url here) Previous Comments: ------------------------------------------------------------------------ [2002-06-15 13:25:39] nadol@conecta.com.pl 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]; } } ?> ------------------------------------------------------------------------ [2002-06-14 15:15:18] sniper@php.net Not enough information was provided for us to be able to handle this bug. Please re-read the instructions at http://bugs.php.net/how-to-report.php If you can provide more information, feel free to add it to this bug and change the status back to "Open". Thank you for your interest in PHP. ------------------------------------------------------------------------ [2002-06-14 09:35:06] nadol@conecta.com.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 ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=17762&edit=1

« previous php.bugs (#10518) next »