Hi,
I am issuing two insert commands in two different tables.
The last increment id (auto generated) of the first table shd go into the second table.
so i am using mysql_insert_id() on the first table and inserting that in second.
since the table types are MyISAM and InnoDB is not enabled,
i cant use transaction.
i just wonder do i need to lock the tables in order to ensure both the statment shd be one transaction..?
Any suggestions are welcome as always
--------------------------------------------------------------------------
I never set a goal because u never know whats going to happen tommorow.
I am issuing two insert commands in two different tables.
The last increment id (auto generated) of the first table shd go into the second table.
so i am using mysql_insert_id() on the first table and inserting that in second.
since the table types are MyISAM and InnoDB is not enabled,
i cant use transaction.
i just wonder do i need to lock the tables in order to ensure both the statment shd be one transaction..?
Any suggestions are welcome as always
--------------------------------------------------------------------------
I never set a goal because u never know whats going to happen tommorow.