You just do not have enough comma between installed columns:
UPDATE tblFacilityHrs SET title = ?, description = ? WHERE uid = ? ^^^^^^
When MySQL reports an error, for example, checking the syntax guide for the use of "something", it is most often to look at the character immediately preceding "something", since that is where your error occurs.
Note: you may need to call bind_param()
after setting the input variables, not earlier. I donβt remember how MySQLi parses them and when they are connected, but it makes sense logically in the code to install them first and then bind them.
//Get params $title=$_POST['title']; $desc=$_POST['description']; $uid2=$_GET['uid']; $stmt->bind_param('sss', $title, $desc, $uid2);
source share