I started to learn PHP and have to find a mistake (maybe in this code):
if($newvalues["year"] != null)
$newvalues["year"] = date("Y-m-d", strtotime($newvalues["year"]."-01-01"));
The new date has to be saved in the array "$newvalues", but when I press the save button, it doesn't save anything. Only if the textfield "year" is empty, the other items can be saved.
Can anyone help me, please? Thanks.
ifstatement is being triggered?