note 49911 deleted from function.dbase-replace-record by cmb

From: Date: Sat, 06 Aug 2016 14:25:04 +0000
Subject: note 49911 deleted from function.dbase-replace-record by cmb
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-206224@lists.php.net to get a copy of this message
Note Submitter: wysocki at wildworld dot net ---- The dbase add and replace functions do NOT like to use the associative array. <?php //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); ?>

« previous php.notes (#206224) next »