title: How to manage duplicate sql values that has to be unique?
body: <p>Users of my site can submit <code>post title</code> and <code>post content</code> by form. The <code>post title</code> will be saved and converted to SEO friendly mode <code>(eg: "title 12 $" -&gt; "title-12")</code>. this will be this post's url.</p>
  
  <p>My question is if a user entered a title that is identical to previous entered title, the url's of those posts will be identical. So can be the new title be modified automatically by appending a number to the end of the title?</p>
  
  <p><strong>eg:</strong></p>
  
  <blockquote>
    <p>"title-new" -> "title-new-1" or if  "title-new-1" present in db
    convert it to "title-new-2"</p>
  </blockquote>
  
  <p>I'm sorry I'm new to this, maybe it's very easy, Thanks for your help.</p>
  
  <p>I'm using PDO.</p>