note 30457 added to function.dbase-add-record
| From: | david at wdsincorporated dot com | Date: | Tue, 18 Mar 2003 20:49:18 +0000 |
| Subject: | note 30457 added to function.dbase-add-record | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-45477@lists.php.net to get a copy of this message | ||
db_add_record doesn't work with associative arrays. Passing in an array such as
db_add_record($dbf, array("FOO"=>"BAR"));
causes an unknown exception. Instead, simple pass in your data in an indexed array:
db_add_record($dbf, array("BAR"));
--
http://www.php.net/manual/en/function.dbase-add-record.php
http://master.php.net/manage/user-notes.php?action=edit+30457
http://master.php.net/manage/user-notes.php?action=delete+30457
http://master.php.net/manage/user-notes.php?action=reject+30457