|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2001-10-09 04:42 UTC] sniper@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2026 The PHP GroupAll rights reserved. |
Last updated: Thu Oct 08 13:00:02 2026 UTC |
Hi! When I use dbase_get_record_with_names instead of dbase_get_record on one of my database to import, php crashes! If you need it, I could send you the dbase-database that caused the problem - please mail me if I should do so. ... tobias wiersch from germany PS: I used the following code (example): <?php include('head.php'); include('body.php'); include('maincfg.php'); $dbf = dbase_open('d:/3dx/php/product.dbf', 0) or die('there is no product.dbf!'); $RecNum = dbase_numrecords($dbf); for($i=1; $i <= $RecNum; $i++) { $row = dbase_get_record_with_names($dbf, $i); echo $row["prod_no"] . "<br>"; } dbase_close($dbf); ?> ---------------- but this is working: <?php include('head.php'); include('body.php'); include('maincfg.php'); $dbf = dbase_open('d:/3dx/php/product.dbf', 0) or die('there is no product.dbf!'); $RecNum = dbase_numrecords($dbf); for($i=1; $i <= $RecNum; $i++) { $row = dbase_get_record($dbf, $i); echo $row[0] . "<br>"; } dbase_close($dbf); ?>