title: php mySQL pdo auto_increment primary key for row
body: <p>How do you set allow mySQL to auto increment a row in mySQL when using php?  I have set the link_id column as auto_increment using phpMyAdmin but I do not know how to get the row to auto increment when using PDO.  </p>
  
  <pre><code>$preparedStatement = $con-&gt;prepare('INSERT INTO link (link_id, category, link_desc, link_url) VALUES (:link_id, :category, :link_desc, :link_url)');
  $preparedStatement-&gt; execute(array(':link_id' =&gt; **AUTO INCREMENT Field in mySQL**, ':category' =&gt; $category,':link_desc' =&gt; $link_desc,':link_url' =&gt; $link_url));
  </code></pre>
  
  <p>Thanks for the help in advance!</p>