|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2000-07-24 16:19 UTC] derick@php.net
[2000-08-15 10:19 UTC] waldschrott@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sun Oct 26 02:00:01 2025 UTC |
This code works at PHP 3.0 without problems, but prints trash (every time different trash). <html> <head><title>Transfer from dBase to mySQL</title></head> <body> <? $dbfid = dbase_open("goods.dbf", 0); $rcount = dbase_numrecords($dbfid); for ($i=1; $i <= $rcount; $i++) { $r = dbase_get_record($dbfid, $i); $name = addslashes($r[0]); $size = $r[1]; $price = $r[2]; $picfile = $r[3]; echo "$name $size $price $picfile <br>"; } dbase_close($dbfid); ?> </body> </html> PHP4RC1 configured by ./configure --with-dbase --with-mysql --with-apache=../apache --enable-track-vars