Came across an error i have never seen before after writing the following code:
$query= "UPDATE `Pharm_Log` SET `text` = ". $bloodtest . " WHERE `id` = " . $patientid;
$result = mysql_query($query) or die(mysql_error());
My error message was this
"You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'Pressure Test: 235/43 WHERE
id
= 1' at line 1"
Any one have any idea on how to fix this? would be greatly appreciated