Hi i was working on this for last 6 hours, row that is returned after insert dont have id.
I insert in mysql table with id auto increment, and $clients have only data that i send in $array, not inserted AI id ?
$clients = $db->clients()->insert($array);
$clients["id"] is empty string.
I can do:
echo $db->clients()->insert_id();
to get last inserted id but if 2 users insert something in same time one user can get id from second insertion.
I don't understend how someone else dont have same problem, i search and this is only post on google about this quesrtion.