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.