I am trying to update a field by using this query:
$sql2 = "UPDATE ujc72_rseventspro_events SET discounts = discounts + 1 WHERE id = '$id' ";
But it won´t work. When I use:
$sql2 = "UPDATE ujc72_rseventspro_events SET discounts = 1 WHERE id = '$id' ";
It works like a charm, so there is no problem with the connection etc.
I am using PHP 7 and Joomla 3.5
Anyone an idea?
$sql2 = "UPDATE ujc72_rseventspro_events SET discounts = discounts + 1 WHERE id = '$id' ";
But it won´t work. When I use:
$sql2 = "UPDATE ujc72_rseventspro_events SET discounts = 1 WHERE id = '$id' ";
It works like a charm, so there is no problem with the connection etc.
I am using PHP 7 and Joomla 3.5
Anyone an idea?