note 49911 added to function.dbase-replace-record

From: Date: Fri, 11 Feb 2005 21:15:13 +0000
Subject: note 49911 added to function.dbase-replace-record
Groups: php.notes 
Request: Send a blank email to php-notes+get-84869@lists.php.net to get a copy of this message
The dbase add and replace functions do NOT like to use the associative array. <? //This gives "unspecified error" on replace and add: $row = dbase_get_record_with_names($db, 1); unset($row['deleted']); dbase_replace_record($db, $row, 1); dbase_add_record($db, $row); //To further prove the point, //The first add works, the second one fails: $testrow1=array('one','2','three'); dbase_add_record($db,$testrow1); $testrow2=array('FIELDA' => 'xxx','FIELDB' => '9','FIELDC' => 'yyyyy'); dbase_add_record($db,$testrow2); ?> ---- Manual Page -- http://www.php.net/manual/en/function.dbase-replace-record.php Edit -- http://master.php.net/manage/user-notes.php?action=edit+49911 Delete: added to the manual -- http://master.php.net/manage/user-notes.php?action=delete+49911&report=yes&reason=added+to+the+manual Delete: bad code -- http://master.php.net/manage/user-notes.php?action=delete+49911&report=yes&reason=bad+code Delete: spam -- http://master.php.net/manage/user-notes.php?action=delete+49911&report=yes&reason=spam Delete: useless -- http://master.php.net/manage/user-notes.php?action=delete+49911&report=yes&reason=useless Delete: other reasons -- http://master.php.net/manage/user-notes.php?action=delete+49911&report=yes Reject -- http://master.php.net/manage/user-notes.php?action=reject+49911&report=yes Search -- http://master.php.net/manage/user-notes.php

« previous php.notes (#84869) next »