本文整理汇总了PHP中DAL::commit方法的典型用法代码示例。如果您正苦于以下问题:PHP DAL::commit方法的具体用法?PHP DAL::commit怎么用?PHP DAL::commit使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类DAL
的用法示例。
在下文中一共展示了DAL::commit方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: catch
$subject = "Register as OpenLCB User";
$body = "Hi {$name},\r\n\r\nYou can verify your email address with the link below.\r\n{$url}\r\n\r\nThe OpenLCB Group";
mail_abstraction(array($email), $subject, $body);
$message = 'Verification email sent.';
} else {
if (isset($_GET['verify'])) {
$person['person_email_verified'] = 'y';
$dal->updatePerson($person);
$message = 'Email address verified.';
}
}
}
}
}
}
$dal->commit();
} catch (UserException $e) {
$dal->rollback();
$error = $e->getMessage();
} catch (Exception $e) {
$dal->rollback();
throw $e;
}
?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=edge"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<!-- The above 3 meta tags *must* come first in the head; any other head content must come *after* these tags -->