I'm trying to save a string variable into mysql using a line of php.
'UPDATE `printed` SET `letterReturned`= '.$returnedDate.' WHERE `defendantId` = '. $defendantId.';';
$returnedDate is a string looking like this '10/01/2018'. I've verified with gettype that it is a string when it goes in but what end up in the databse is this: 0.004955401387512388
How on earth is it saving as a decimal? I'm stumped and have been unable to find anything related to this by googling it. There must be a name for this kind of thing.
Any Ideas Greatly appreciated. Please enlighten me.