note 95768 added to function.dbase-numfields
| From: | paul_andrec at hotmail dot com | Date: | Thu, 21 Jan 2010 03:29:36 +0000 |
| Subject: | note 95768 added to function.dbase-numfields | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-165153@lists.php.net to get a copy of this message | ||
When you want to add a record to a table you have to exclude the last row deleted.
So lets say your table have 10 rows with the deleted row to a total of 11.
you have to exclude the deleted row in your array();
sample:
table is :
$row($PID,$SID,$RID,$CON,$COM,$AD1,$AD2,$CIT,$STA,$ZIP,$deleted); $record=array($PID,$SID,$RID,$CON,$COM,$AD1,$AD2,$CIT,$STA,$ZIP,);
$db = dbase_open($db_path_and_file,2);
dbase_add_record($db,$record );
dbase_close($db);
This will work.
----
Server IP: 69.147.83.197
Probable Submitter: 216.239.71.233
----
Manual Page -- http://www.php.net/manual/en/function.dbase-numfields.php
Edit -- https://master.php.net/note/edit/95768
Del: integrated -- https://master.php.net/note/delete/95768/integrated
Del: useless -- https://master.php.net/note/delete/95768/useless
Del: bad code -- https://master.php.net/note/delete/95768/bad+code
Del: spam -- https://master.php.net/note/delete/95768/spam
Del: non-english -- https://master.php.net/note/delete/95768/non-english
Del: in docs -- https://master.php.net/note/delete/95768/in+docs
Del: other reasons-- https://master.php.net/note/delete/95768
Reject -- https://master.php.net/note/reject/95768
Search -- https://master.php.net/manage/user-notes.php