note 43958 added to function.dbase-replace-record

From: Date: Fri, 09 Jul 2004 22:21:08 +0000
Subject: note 43958 added to function.dbase-replace-record
Groups: php.notes 
Request: Send a blank email to php-notes+get-72946@lists.php.net to get a copy of this message
Well, the problem here is the following: When you read a record, the "deleted" field is added automaticlly; so if you read -> modify -> write; just unset the "deleted" field by writing: unset($data["deleted"]); And apparently dbase_replace_record has issues with hash arrays; so remove the keys from the array: dbase_replace_record($dbf_handler, array_values($data), $record_id); That worked fine for me! ---- Manual Page -- http://www.php.net/manual/en/function.dbase-replace-record.php Edit -- http://master.php.net/manage/user-notes.php?action=edit+43958 Delete -- http://master.php.net/manage/user-notes.php?action=delete+43958&report=yes Reject -- http://master.php.net/manage/user-notes.php?action=reject+43958&report=yes Search -- http://master.php.net/manage/user-notes.php

« previous php.notes (#72946) next »