List Info

Thread: note 54899 deleted from function.dbase-add-record by betz




note 54899 deleted from function.dbase-add-record by betz
user name
2006-02-07 11:50:06
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)

-- 
PHP Notes Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub
.php

[1]

about | contact  Other archives ( Real Estate discussion Medical topics )