mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-31 01:35:36 +02:00
Encoded SQL fields for queries
This commit is contained in:
parent
ad0984d312
commit
3ce2c6ae3e
@ -3039,15 +3039,19 @@ class Prd
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Create item itself with INSERT query and store its value in $this->currentItem['value'].
|
// 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(
|
$insert_query = db_process_sql_insert(
|
||||||
$table,
|
$table,
|
||||||
$this->currentItem['parsed'],
|
$sql_fields,
|
||||||
false
|
false
|
||||||
);
|
);
|
||||||
|
|
||||||
$insert = db_get_all_rows_filter(
|
$insert = db_get_all_rows_filter(
|
||||||
$table,
|
$table,
|
||||||
$this->currentItem['parsed'],
|
$sql_fields,
|
||||||
$id
|
$id
|
||||||
);
|
);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user