note 95768 deleted from function.dbase-numfields by cmb
| From: | cmb@php.net | Date: | Sun, 30 Oct 2016 18:02:45 +0000 |
| Subject: | note 95768 deleted from function.dbase-numfields by cmb | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-206994@lists.php.net to get a copy of this message | ||
Note Submitter: paul_andrec at hotmail dot com
----
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 :
<?php
$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.