I've got a SQL DB in Azure. I am running the Webapps PHP link to that DB.
I can connect fine, and retrieve data. I am having troubles trying to update a table.
My SQL statement is:
$sql3="UPDATE EmpBonus SET EmpBonus_BonusAmt=?, EmpBonus_StartDate=?, EmpBonus_EndDate=?, EmpBonus_Current=? WHERE Id=?";
I can pass the parameters over via this line of code
$params=array($bonusamt,$startdate,$enddate,$currentstr,$primkey);
My problem is that the DATES $startdate or $enddate have to have the single quote around the date i.e. '2015-01-01' or else SQL will reject it.
I can't find on the web where I can insert the single quote around the date in PHP.
Can anyone help?