Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

PHP Forum


You are currently viewing our PHP Forum as a guest. Please register to participate.
Login



Freelance Jobs

Reply
Using transactions with PHP and MySQL?
Old 11-17-2010, 11:40 AM Using transactions with PHP and MySQL?
Junior Talker

Posts: 3
Trades: 0
Hi!
Has anyone managed to use transactions with MySQL and Php?
The server I'm currently on does have problems with database connections from time to time. (It has happened that new players have signed up, but not received any activation e-mail because the database connection was lost in between actions).

I've tried to use SET AUTOCOMMIT=0 and then use BEGIN, END and COMMIT statements.
If I put an "exit;" (in the php code) and halts it before the COMMIT, all changes should be rolled-back right? It seems like it doesn't.
Or is the mysqli class a better alternative?
__________________

Please login or register to view this content. Registration is FREE
- Create your own city
MrTarzan is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 11-19-2010, 01:59 AM Re: Using transactions with PHP and MySQL?
Backslider's Avatar
Experienced Talker

Posts: 40
Trades: 0
You need to upgrade your server, simple as that.
Backslider is offline
Reply With Quote
View Public Profile
 
Old 11-22-2010, 04:01 AM Re: Using transactions with PHP and MySQL?
Banned

Posts: 408
Name: mushget
Trades: 0
Did you have restart the server? have a try..
mushget is offline
Reply With Quote
View Public Profile Visit mushget's homepage!
 
Reply     « Reply to Using transactions with PHP and MySQL?
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.11901 seconds with 12 queries