I'm capturing information from a single PHP form to be recorded in two tables...
What I want is to have both records written or none at all (i.e., if one goes through and the other fails, remove the one that went through)
I wanted to know if there was a way I can detect a failure (possibly using 'or die'?) of the second query, and use this as a trigger to delete the record entered in the first query (or if there is a better method of achieving this)
thanks.