My UpdateRecord function is the only function call I really make. UpdateRecord checks for the record to see if it exists, if the record exists it updates the table.. if the record does not exist it runs the AddRecord() function.

Although my method works, it is very tedious. Is there an SQL syntax that checks for a record and updates it, and if the record does not exist, it just adds the record? I suspect that having 3 php functions to do this work is highly inefficient.