Thanks alot Cal.

-Steve.

-----Original Message-----
From: Cal Evans [mailto:[EMAIL PROTECTED]]
Sent: Friday, June 21, 2002 9:38 AM
To: Steve Bradwell; [EMAIL PROTECTED]
Subject: RE: Innodb and transactions


Steve,

mysql_query('BEGIN');
if (is_object(mysql_query('Insert something'))){
  mysql_query('COMMIT');
} else {
  mysql_query('ROLLBACK');
}

I'm working from memory here.  I use the ADODB wrapper and it works a little
different. (Look into it, it's a great piece of code)

HTH,
=C=





-----Original Message-----
From: Steve Bradwell [mailto:[EMAIL PROTECTED]]
Sent: Friday, June 21, 2002 7:58 AM
To: [EMAIL PROTECTED]
Subject: Innodb and transactions


Hey everybody,

Thank god its friday. =]

Can someone point me to an example of how to do begin rollback commit with
php and mysql Innodb tables?

Thanks for any and all help,

Steve.

---------------------------------------------------------------------
Before posting, please check:
   http://www.mysql.com/manual.php   (the manual)
   http://lists.mysql.com/           (the list archive)

To request this thread, e-mail <[EMAIL PROTECTED]>
To unsubscribe, e-mail <[EMAIL PROTECTED]>
Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php


---------------------------------------------------------------------
Before posting, please check:
   http://www.mysql.com/manual.php   (the manual)
   http://lists.mysql.com/           (the list archive)

To request this thread, e-mail <[EMAIL PROTECTED]>
To unsubscribe, e-mail <[EMAIL PROTECTED]>
Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php

Reply via email to