本文整理匯總了PHP中error::error_danger方法的典型用法代碼示例。如果您正苦於以下問題:PHP error::error_danger方法的具體用法?PHP error::error_danger怎麽用?PHP error::error_danger使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類error
的用法示例。
在下文中一共展示了error::error_danger方法的1個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: array
if ($con) {
$db = $con->{$tb_payment};
$selection = $db->{$myusers_tb_payment};
$document = array("email" => $email);
$result = $selection->findOne($document);
if ($result) {
$res = $selection->find($document);
foreach ($res as $doc) {
//echo $doc["_id"] ."<br />";
//echo $doc["email"] ."<br />";
//echo $doc["balance"] ."<br />";
}
$selection->update(array("_id" => $doc["_id"]), array('$set' => array("balance" => "{$balance}")));
//echo "Document updated successfully";
foreach ($res as $doc) {
//echo $doc["_id"] ."<br />";
//echo $doc["email"] ."<br />";
//echo $doc["balance"] ."<br />";
}
} else {
die("user does not exist , or user / password is incorrect");
}
} else {
die("Mongo DB not installed");
}
} else {
include_once "errorglobal.php";
$obj = new error();
$obj->error_danger("oOps error occured");
}
unset($_SESSION["results"]);