Hi,
I am undertaking my first project using PHP and mySQL.
What I wish to do is:
After a user has completed a form, I wish to query a table to see if a record with the same name exists. If this exists, certain fields in that record should be updated.
If a record does not exist, a completely new record is added to the table.
Can anyomre please help me with the SQL query I would need to use for this?
Many Thanks.
I am undertaking my first project using PHP and mySQL.
What I wish to do is:
After a user has completed a form, I wish to query a table to see if a record with the same name exists. If this exists, certain fields in that record should be updated.
If a record does not exist, a completely new record is added to the table.
Can anyomre please help me with the SQL query I would need to use for this?
Many Thanks.