note 61180 added to function.dbase-add-record

From: Date: Fri, 27 Jan 2006 13:49:01 +0000
Subject: note 61180 added to function.dbase-add-record
Groups: php.notes 
Request: Send a blank email to php-notes+get-102564@lists.php.net to get a copy of this message
Apparently, one cannot use associative arrays in order to compose the record to be written to the dbf file. The following code will not work and will raise an unexpected error: <?php $record = array("ID" => 10, "VALUE" => 'Hello'); dbase_add_record($dbid, $record); ?> Instead: <?php $record = array(0 => 10, 1 => 'Hello'); dbase_add_record($dbid, $record); ?> ---- Server IP: 213.92.11.19 Probable Submitter: 80.204.227.226 ---- Manual Page -- http://www.php.net/manual/en/function.dbase-add-record.php Edit -- http://master.php.net/manage/user-notes.php?action=edit+61180 Delete: added to the manual -- http://master.php.net/manage/user-notes.php?action=delete+61180&report=yes&reason=added+to+the+manual Delete: bad code -- http://master.php.net/manage/user-notes.php?action=delete+61180&report=yes&reason=bad+code Delete: spam -- http://master.php.net/manage/user-notes.php?action=delete+61180&report=yes&reason=spam Delete: useless -- http://master.php.net/manage/user-notes.php?action=delete+61180&report=yes&reason=useless Delete: non-english -- http://master.php.net/manage/user-notes.php?action=delete+61180&report=yes&reason=non-english Delete: already in docs -- http://master.php.net/manage/user-notes.php?action=delete+61180&report=yes&reason=already+in+docs Delete: other reasons -- http://master.php.net/manage/user-notes.php?action=delete+61180&report=yes Reject -- http://master.php.net/manage/user-notes.php?action=reject+61180&report=yes Search -- http://master.php.net/manage/user-notes.php

« previous php.notes (#102564) next »