Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Append dbase record from other dbase

Status
Not open for further replies.

SM777

Technical User
Mar 7, 2001
208
GB
I'm trying to fill a dbase database with records from another dbase database:

*******
for ($i=1; $i <= $m_count; $i++) {
$m_record = dbase_get_record($db1, $i);
if (chop($m_record[0]) == &quot;COPY ME&quot;) {
dbase_add_record($db2, $m_record[0], $m_record[1], $m_record[2], $m_record[3], $m_record[4], $m_record[5] );
}
}
*******

db1 and db2 contain the same 6 fields. I want to copy all db1 records with first field = &quot;COPY ME&quot; to db2.

I get the error &quot;Wrong parameter count for dbase_add_record()&quot;.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top