Ray Thanks, please see if it is on the correct place please
I place it where if found match execute the query.
$WA_fieldValues = explode("|", $WA_fieldValuesStr);
$insertParamsObj = WA_generateInsertParams($WA_fieldNames, $WA_columns, $WA_fieldValues, -1);
$WA_sql = "insert into ".$WA_table." (".$insertParamsObj->WA_tableValues.") values (".$insertParamsObj->WA_dbValues.")";
if ($pjCart->DisplayInfo("Category")==6) {
$WA_editCmd = mysql_query($WA_sql, $WA_connection) or die(mysql_error());
}
$pjCart->MoveNext();