PHP PDO Transactions?
I have a signup page and basically I need data inserted into 4 tables. I'm new to PDO and am confused over something. Basically if any of the inserts fail I don't want anything added to the database, that seems simple enough. My confusion is, I need to first insert the users username, email, password etc in my users table so I can get (not sure how) using PDO the uid MySQL has given my user (auto incremented by mysql). I need the user uid MySQL gave my user for the other tables as the other tables needs the uid so everything is linked properly together. My tables are InnoDB and I have foreign