I found this on php.net to check if file exists.
I want to check if record exists first, then do update, otherwise do an insert.
if(record exist) {
update query}
else
{ insert query}
I know how to update or insert, but don't know how to check if a record exists first. How is it done?
See Question&Answers more detail:os