18 lines
296 B
PHP
18 lines
296 B
PHP
<?php
|
|
try {
|
|
$conn->beginTransaction();
|
|
|
|
$user->save();
|
|
|
|
$conn->beginTransaction();
|
|
$group->save();
|
|
$email->save();
|
|
|
|
$conn->commit();
|
|
|
|
$conn->commit();
|
|
} catch(Exception $e) {
|
|
$conn->rollback();
|
|
}
|
|
?>
|