When I use a variable in my WHERE clause of Update the updation doesnt take place.
            $eventid=$_GET['id'];        
            $sql = "UPDATE events SET name=:name WHERE id=:id";
            $q = $conn->prepare($sql);
            $q->execute(array(':name'=>$name,':id'=>$eventid));
When I echo $_GET['id'] I get the correct value. $_GET['id'] is the value I have passed from another page
 
     
    