I am inserting multiple records into mysql with the codes below. However, after inserting into mysql, I need to insert same into pervasive sql for use by pastel. I use odbc_exec which works well if record to be inserted is jus one. I need help pls.
$query .= '
   INSERT INTO supplier_invoice
        (inv_number, SupplCode, Item_No, product_name, 
         qty, unitPrice, subtotal, inv_dt, created_by) 
   VALUES("'.$inv_No.'", "'.$supp_code.'", "'.$itNo.'", "'.$itName.'", 
          "'.$qqty.'", "'.$cost.'", "'.$ttotal.'", "'.$inv_dt.'", 
          "'.$submitted_by.'"); 
   ';
 
     
    