Forum Moderators: coopster
as of mysql 4 you can send BEGIN, COMMIT and ROLLBACK statements to mysql through php.
if you don't have mysql 4 i suppose you could nest if/else statements in order to catch failures, although i think that could get a bit convoluted.
but i'm not sure what you mean about php itself having transactions?
In PHP, it depends on the database system. With Postgres, for example, it's as simple as doing:
pg_query("BEGIN;");
pg_query("ROLLBACK;");
pg_query("COMMIT;");
Did you want something other than this?