append dbase from another dbase

admin

Administrator
Staff member
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]) == "COPY ME") { 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 = "COPY ME" to db2.I get the error "Wrong parameter count for dbase_add_record()".
 
Back
Top