Code: Select all
$sql_data = ['customers_id' => (int)$_SESSION['customer_id'],
'discount_codes_id' => (int)$discount_codes['discount_codes_id']
];
$GLOBALS['db']->perform('customers_to_discount_codes ', $sql_data);'customers_to_discount_codes '
Thank you for your feedback (it seems it works with the space, but i'm not sure why it's there