Encoded SQL fields for queries

This commit is contained in:
Enrique Martin 2024-02-07 03:13:52 +01:00
parent ad0984d312
commit 3ce2c6ae3e
1 changed files with 6 additions and 2 deletions

View File

@ -3039,15 +3039,19 @@ class Prd
}
// Create item itself with INSERT query and store its value in $this->currentItem['value'].
$sql_fields = [];
foreach($this->currentItem['parsed'] as $f => $v) {
$sql_fields['`'.$f.'`'] = $v;
}
$insert_query = db_process_sql_insert(
$table,
$this->currentItem['parsed'],
$sql_fields,
false
);
$insert = db_get_all_rows_filter(
$table,
$this->currentItem['parsed'],
$sql_fields,
$id
);