2 months ago

Two record at once in database

Posted 2 months ago by Genjosanzo

Hi, i have 2 related tables "accounts" "tokens"

accounts have a field token ( i want to save here the id of tokens table) tokens have a account_id (i want to save here the field ID of accounts table)

When i create a new account i want to save the data at once on the 2 tables. What can i do? Thanks.

Please sign in or create an account to participate in this conversation.