Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $handle = new PDO( 'mysql:host=;dbname=', '', '');
- $handle->beginTransaction();
- // here you execute your query
- $handle->commit();
- $id = $handle->lasInsertId();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement