title: PHP MySQL GET RESULT from INSERT INTO IF NOT EXIST
body: <p>I know how to do INSERT INTO if the record doesn't exist.
  But if it does exist, mysql doesn't treat it as an error.  It just treats it as 0 rows inserted.
  I want to know if that was the case and return that message to the user that the data they submitted already exists.</p>
  <p>I know I can do it if I first query mysql before I attempt to insert the new data.  However, is there a way to do it with the INSERT and get a result?</p>