note 54899 added to function.dbase-add-record

From: Date: Tue, 19 Jul 2005 09:00:08 +0000
Subject: note 54899 added to function.dbase-add-record
Groups: php.notes 
Request: Send a blank email to php-notes+get-92153@lists.php.net to get a copy of this message
$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) ---- Manual Page -- http://www.php.net/manual/en/function.dbase-add-record.php Edit -- http://master.php.net/manage/user-notes.php?action=edit+54899 Delete: added to the manual -- http://master.php.net/manage/user-notes.php?action=delete+54899&report=yes&reason=added+to+the+manual Delete: bad code -- http://master.php.net/manage/user-notes.php?action=delete+54899&report=yes&reason=bad+code Delete: spam -- http://master.php.net/manage/user-notes.php?action=delete+54899&report=yes&reason=spam Delete: useless -- http://master.php.net/manage/user-notes.php?action=delete+54899&report=yes&reason=useless Delete: non-english -- http://master.php.net/manage/user-notes.php?action=delete+54899&report=yes&reason=non-english Delete: other reasons -- http://master.php.net/manage/user-notes.php?action=delete+54899&report=yes Reject -- http://master.php.net/manage/user-notes.php?action=reject+54899&report=yes Search -- http://master.php.net/manage/user-notes.php

« previous php.notes (#92153) next »