php4 - dbase_create error

From: Date: Fri, 24 Dec 1999 01:04:58 +0000
Subject: php4 - dbase_create error
Groups: php.dev 
Request: Send a blank email to php-dev+get-13976@lists.php.net to get a copy of this message
I downloaded the latest php4 and installed it today - I've been running php3 for a while now, so I thought I'd give php4-b3 a try. I noticed that when using dbase_create, it gives me errors, since I couldn't find any notices on this function changing, I thought I'd ask. <? $fields = array( array("Name", "C", 10), array("Fee", "N", 11,6)); $db = dbase_create("temp/test.dbf", $fields); $newrecord = array( "Geoff", 5.99); dbase_add_record( $db, $newrecord); dbase_delete_record( $db, 1); dbase_pack( $db); dbase_close( $db); ?> Heres the error I'm getting: "Warning: second parameter must be array of arrays in /usr/www/mainstreet/testcreate.php4 on line 3" It's trying to tell me that $fields is not an array of arrays ?? Am I missing something? Thanks for your time, Geoff Jukema I figure I'll brag about your product a little too: excellent - fast - just an amazing product you have here, thank you!

« previous php.dev (#13976) next »