I wrote following query;
But following error is being occured;PHP Code:$Query = "UPDATE customer SET firstname = " . $formVars["first_Name"] .
"WHERE cust_id = " . $customerID;
Error 1064 : 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 'cust_id = 1' at line 1![]()
Actually it should update the record whose id iswhich is '1' in this case, in the fieldPHP Code:$customerID
with the data inPHP Code:firstname
.PHP Code:$formVars["first_Name"]
plzz help me.........




Bookmarks