07-12-2017, 10:27 PM
Hmm. Not sure what you're talking about, but if you just need to have them share an id or something like that you can
Do your query...
$db->insert('mytable',$fields);
$lastId = $db->lastId();
Then when you insert into the second table, you have your id from the first table in the $lastId variable to use in the second.
Do your query...
$db->insert('mytable',$fields);
$lastId = $db->lastId();
Then when you insert into the second table, you have your id from the first table in the $lastId variable to use in the second.