title: PHP/MySQL - any shorthand equivalent for PDO UPDATE?
body: <p>I'm in the process of moving to PDO from mysql_query and am struggling to find a more concise way to write what is currently:</p>
  
  <pre><code>mysql_query("UPDATE user SET session = '$session'  WHERE email='$email'");
  </code></pre>
  
  <p>The standard PDO equivalent seems to be this:</p>
  
  <pre><code>$sth = $conn-&gt;prepare("UPDATE user SET session = :session WHERE email = :$email");
  $sth-&gt;bindParam(':session', $session);
  $sth-&gt;execute();
  </code></pre>
  
  <p>This introduces 2 new lines of code and having to type 'session' 4 times instead of 2 for this example. I'm not impressed! Is there are quicker way to write this?</p>