mysql_query('SET AUTOCOMMIT = 0; START COPYING');
mysql_query($query1);
mysql_query($query2);
......
mysql_query($query7);
if ( $all done )
mysql_query( 'COMMIT' );
else mysql_query( 'ROLLBACK' );
now here is a problem whenever in transaction process amount of mysql query's exceeds 2 query's , the script will start looping (don't know what kinda looping, just an guess don't laugh now ) without any sign of terminating until the script process reaches php max execution time limit...
well that's minor now comes the real headache after that any mysql query run will do same behaviour, will start looping until php max execution time limit is reached .
strange ..........
well this is working fine with mysqli & odbc DB's .
mysql_query($query1);
mysql_query($query2);
......
mysql_query($query7);
if ( $all done )
mysql_query( 'COMMIT' );
else mysql_query( 'ROLLBACK' );
now here is a problem whenever in transaction process amount of mysql query's exceeds 2 query's , the script will start looping (don't know what kinda looping, just an guess don't laugh now ) without any sign of terminating until the script process reaches php max execution time limit...
well that's minor now comes the real headache after that any mysql query run will do same behaviour, will start looping until php max execution time limit is reached .
strange ..........
well this is working fine with mysqli & odbc DB's .
Comment