Page 1 of 1

Mysql/PHP/Transactions

Posted: Wed Oct 23, 2002 1:13 pm
by markwenham
After much web research I find I am still confused as to how to apply mysql transactions through PHP. For example what PHP syntax would be used to issue a "begin work" or "commit" command?

Any info or links?

Thanks, Mark

Posted: Wed Oct 23, 2002 2:03 pm
by DeGauss
Are you asking how to use mysql through PHP?

Or are you talking about using credit cards through php & mysql?

Posted: Wed Oct 23, 2002 2:18 pm
by twigletmac
Definitely a database question (so I'm moving it) as for the answer, not sure (never used transactions myself) but wouldn't you just use mysql_query() to run the SQL statements as with any other thing that you wanted to do with the MySQL database through PHP?

Mac

Posted: Wed Oct 23, 2002 5:18 pm
by mydimension
yep, you would send the commands through mysql_query() and if you need a refresher: http://www.mysql.com/doc/en/Transactional_Commands.html