I have a page where the user is updating a participant's information. The participant may or may not already have a record for a particular set of data from the webpage. Rather than doing a SELECT to see if there is data (most of the time there will be), then do an UPDate or INSERT, I was thinking it would be better to do the UPDATE and then if it's not successful, do an INSERT.
Does this make sense? If so, how do I test the return result of the UPDATE query?
Thanks!
Does this make sense? If so, how do I test the return result of the UPDATE query?
Thanks!