note 43958 deleted from function.dbase-replace-record by didou
| From: | didou@php.net | Date: | Sat, 29 Jan 2005 17:17:14 +0000 |
| Subject: | note 43958 deleted from function.dbase-replace-record by didou | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-84154@lists.php.net to get a copy of this message | ||
Note Submitter: jgonzalez at NOSPAMMING dot innox dot com dot mx
----
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!