ID: 22171 Updated by: [EMAIL PROTECTED] Reported By: [EMAIL PROTECTED] -Status: Feedback +Status: Bogus Bug Type: MySQL related Operating System: NT2000 PHP Version: 4.3.0 New Comment:
you have to use mysql_query("begin"); not mysql_query(begin); Previous Comments: ------------------------------------------------------------------------ [2003-02-11 16:55:01] [EMAIL PROTECTED] Not enough information was provided for us to be able to handle this bug. Please re-read the instructions at http://bugs.php.net/how-to-report.php If you can provide more information, feel free to add it to this bug and change the status back to "Open". Thank you for your interest in PHP. Could you please provide a short sample of code?! (only query related part of code) ------------------------------------------------------------------------ [2003-02-11 11:40:59] [EMAIL PROTECTED] I´m using MySQL Version 4.0.8 Gamma Release and PHP 4.3. There is the transaction control implemented. Now I tried to use the statements "set autocommit=0, begin, commit or rollback" within a php-script. At runtime I have got an error: Notice: Use of undefined constant BEGIN - assumes 'BEGIN' in test.php on line xx. The control statements in MySQL are correctly functioning ! I think the transaction control statements aren't supported in PHP yet. Are you able to advice me ? Many Thanks, Werner Schuermann ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=22171&edit=1