Hi everyone,
In a project, i have to deal with several tables when i insert a record. i want to make this in a transaction so i can roll back the transaction when a database error occurs.
i found that among the PHP functions related with ODBC,no function like odbc_starttransaction() is there, only odbc_roolback() and odbc_commit().
Can anyone tell me how to start a transaction with PHP functions?
Thanks very much.
In a project, i have to deal with several tables when i insert a record. i want to make this in a transaction so i can roll back the transaction when a database error occurs.
i found that among the PHP functions related with ODBC,no function like odbc_starttransaction() is there, only odbc_roolback() and odbc_commit().
Can anyone tell me how to start a transaction with PHP functions?
Thanks very much.