I have a form that contains 1 Quote record.
Then there is a button on the form called: ?Accepted?.
When the user selects the button, some PHP code runs to insert a new Sale record based on the quote.
I need to get the new Sales record?s ID (SalesID) directly after it was inserted.
How do I retrieve a newly created record?s ID directly after it was inserted?