I use begin and commit in php with mysql. it does not work. my code is like
$sql = 'begin;
update.......
commit;';
$test = mysql_query($sql);
i also put my sql code in phpmyadmin and it worked smoothly. please help why i cannot use 'begin and commit' in php. thanks