title: Capture error and continue when inserting into a unique column
body: <p>I have a unique column. The thing is, as I understand it, when you try to insert some data into that column that violates its uniqueness, the query will stop getting processed. What I wanna do is simply capture the error and continue with the rest of the rows. How would you do this in the most efficient way using PHP and MySQL?</p>
  
  <p>here you have a short example
  <a href="http://pastie.org/1357001" rel="nofollow">http://pastie.org/1357001</a></p>
  
  <p>what i really was wondering is that will the loop get broken if an error occurs?</p>