title: Update query with PDO and MySQL
body: <p>Im trying to write an update query with PDO only I cant get my code to execute?</p>
  
  <pre><code>try {
   $conn = new PDO("mysql:host=$hostdb; dbname=$namedb", $userdb, $passdb);
  $conn-&gt;exec("SET CHARACTER SET utf8");      // Sets encoding UTF-8
  $conn-&gt;setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);
  
   $sql = "UPDATE `access_users`   
        (`contact_first_name`,`contact_surname`,`contact_email`,`telephone`) 
        VALUES (:firstname, :surname, :telephone, :email);
        ";
  
  
  
   $statement = $conn-&gt;prepare($sql);
   $statement-&gt;bindValue(":firstname", $firstname);
   $statement-&gt;bindValue(":surname", $surname);
   $statement-&gt;bindValue(":telephone", $telephone);
   $statement-&gt;bindValue(":email", $email);
   $count = $statement-&gt;execute();
  
    $conn = null;        // Disconnect
  }
  catch(PDOException $e) {
    echo $e-&gt;getMessage();
  }
  </code></pre>