I try to update a row in my database. i receive no error but the update does not happend
$sql = "UPDATE calendar_events
SET event_title='".$_POST["naam"]."'
WHERE id ='($event_id)'";
problem is by variable $event_id. If i place a nummber in place of $event_id ( WHERE id =6) then it is ok and i have my update but any he do not accept any variable I did change a lot of things. The type of variabls id and $event_id are the same. De value of the id and $event_id are de same . i did try with $event_id, and '".$event_id."'. every thing is ok and no erroror from database bat the update do not happen. can someone help me thanks