note 95768 modified in function.dbase-numfields by danbrown
| From: | danbrown@php.net | Date: | Thu, 21 Jan 2010 15:25:55 +0000 |
| Subject: | note 95768 modified in function.dbase-numfields by danbrown | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-165169@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 :
<?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.
--was--
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.
http://php.net/manual/en/function.dbase-numfields.php