本文整理汇总了PHP中Codes::check方法的典型用法代码示例。如果您正苦于以下问题:PHP Codes::check方法的具体用法?PHP Codes::check怎么用?PHP Codes::check使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Codes
的用法示例。
在下文中一共展示了Codes::check方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: getData
}
} else {
if ($action == "gastromap") {
getData();
} else {
echo "action no reconocida";
}
}
}
} else {
if (isset($_POST["code1"]) && isset($_POST["code2"]) && isset($_POST["code3"])) {
$code1 = $_POST["code1"];
$code2 = $_POST["code2"];
$code3 = $_POST["code3"];
$c = new Codes();
$bool = $c->check($code1);
if ($bool == false) {
$msg = "Some code not found in system.";
header("Location: ../views/popularVote.php?msg={$msg}");
} else {
$idp1 = $bool[0]["Pincho_code"];
$ide1 = $bool[0]["Pincho_Establishment_idEstablishment"];
$idpop1 = $bool[0]["Popular_idPopular"];
$bool = $c->check($code2);
if ($bool == false) {
$msg = "Some code not found in system.";
header("Location: ../views/popularVote.php?msg={$msg}");
} else {
$idp2 = $bool[0]["Pincho_code"];
$ide2 = $bool[0]["Pincho_Establishment_idEstablishment"];
$idpop2 = $bool[0]["Popular_idPopular"];