本文整理汇总了PHP中message::display方法的典型用法代码示例。如果您正苦于以下问题:PHP message::display方法的具体用法?PHP message::display怎么用?PHP message::display使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类message
的用法示例。
在下文中一共展示了message::display方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: ValidateMail
if (!$updating && trim($password) == "") {
$eflag = true;
$fields .= " " . $strPass . ",";
}
if (trim($areaCode) == "" || trim($phone) == "") {
$eflag = true;
$fields .= " " . $strPhone . ",";
}
if (trim($email) == "") {
$eflag = true;
$fields .= " E-mail" . ",";
} else {
$result = ValidateMail($email);
if (!$result[0]) {
$eflag = true;
$objErr->display("", "", 2, $strMess5 . $result[1]);
}
}
if ($userType == 2) {
if (trim($street) == "") {
$eflag = true;
$fields .= " " . $strStreet . ",";
}
if (trim($number) == "") {
$eflag = true;
$fields .= " " . $strNumber . ",";
}
if (trim($cep) == "") {
$eflag = true;
$fields .= " " . $strZip . ",";
}
示例2: verifyMod
function verifyMod()
{
// Erro
$objM = new message($_SESSION['userLang']);
// Verificando se usuário inexistente
$sql = "SELECT * FROM User WHERE userId='{$this->userId} '";
$this->bd->query($sql) or $this->bd->error($sql);
$count = $this->bd->numRows();
if ($count == 0) {
$objM->display("Usu", 4, 2);
return true;
}
// Catching email
$row = $this->bd->fetchRow();
// Verificando email
if ($row["email"] != $this->email) {
$sql = "SELECT * FROM User WHERE email='{$this->email}'";
$this->bd->query($sql) or $this->bd->error($sql);
if ($this->bd->numRows()) {
$objM->display("Usu", 2, 2);
return true;
}
}
return false;
}