title: INSERT with PDO. Should I use try...catch?
body: <p>I just started using PDO and I have this code to insert values in my table.  </p>
  
  <pre><code>$dbh = new PDO("mysql:host=$hostname;dbname=$database", $username, $password);
  $sql = "INSERT INTO lists (ID, Title, Timestamp, Plays, Likes) 
  VALUES (:ID, :Title, :Timestamp, :Plays, :Likes)";
  $q = $dbh-&gt;prepare($sql);
  $q-&gt;execute(array(':ID'=&gt;$list[$i]["id"],
                ':Title'=&gt;$list[$i]["title"],
                ':Timestamp'=&gt;$list[$i]["timestamp"],
                ':Plays'=&gt;$list[$i]["playcount"],
                ':Likes'=&gt;$list[$i]["likes"]));
  </code></pre>
  
  <p>From reading over the forums, I understand that sometimes I would need to use the try...catch for safety reasons.I am really confused...In my case, should I change anything in order to use try...catch???</p>
  
  <p>Thanks a lot!</p>