note 54899 deleted from function.dbase-add-record by betz
| From: | betz@php.net | Date: | Tue, 07 Feb 2006 11:50:06 +0000 |
| Subject: | note 54899 deleted from function.dbase-add-record by betz | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-103189@lists.php.net to get a copy of this message | ||
Note Submitter: dahlmann at dahlmann dot biz
----
$array = dbase_get_record ($handle, $anyrecordno);
$result=dbase_add_record ($handle, $array )
does not work because dbase_get_record adds a field "deleted" to $array. You can check
this by using "dump" or "print_r"
Before writing $array into the dbase-table you have to strip the last field.
$array = dbase_get_record ($handle, $anyrecordno);
$array = array_slice ($array, 0, count($array)-1);
$result= dbase_add_record ($handle, $array)