the function insert data in the table users and sent an email.
I need to terminate a previous state before create another one, correct?
so, i need to store the activation link in another table, the activationLinks table.
i can make something like this? i think the code below doesn’t work.
You can only INSERT in to one table at a time, so if you need to insert in to two tables you need two queries (or rather: if you need to insert in to n distinct tables you need n queries)