A
Anonymous
Guest
Hi everyone !
I have a php file that contains a set of 10 queries to be executed. if anyone fails then i am in trouble..
please help .. this is the structure
<?php
//opening database1
//executing query1 of database1
//executing query2 of database1
//executing query3 of database1
//opening database2
//executing query1 of database2
//executing query2 of database2
//executing query3 of database2 //A
//executing query4 of database2
?>
If failure occurs at A.. then i have to rollback the whole process , even the updated values of databse1.
How to do it ? Please someone help.
I have a php file that contains a set of 10 queries to be executed. if anyone fails then i am in trouble..
please help .. this is the structure
<?php
//opening database1
//executing query1 of database1
//executing query2 of database1
//executing query3 of database1
//opening database2
//executing query1 of database2
//executing query2 of database2
//executing query3 of database2 //A
//executing query4 of database2
?>
If failure occurs at A.. then i have to rollback the whole process , even the updated values of databse1.
How to do it ? Please someone help.