prepare("INSERT IGNORE INTO accounting_accounts (name, type) VALUES (?, ?)"); foreach ($common_accounts as $account) { $stmt->execute($account); } echo "Common accounts have been added."; ?>