本文整理汇总了PHP中Perfil::seleccionar_datos方法的典型用法代码示例。如果您正苦于以下问题:PHP Perfil::seleccionar_datos方法的具体用法?PHP Perfil::seleccionar_datos怎么用?PHP Perfil::seleccionar_datos使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Perfil
的用法示例。
在下文中一共展示了Perfil::seleccionar_datos方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: header
if ($rol == "3") {
} else {
header("Location: ../controller/login.php");
exit;
}
} else {
header("Location: ../controller/login.php");
exit;
}
} else {
header("Location: ../controller/login.php");
exit;
}
$usuario = $_SESSION['usuario'];
try {
$cuadro = $perfil->seleccionar_datos($usuario);
} catch (Exception $e) {
echo "Ha ocurrido un error";
}
if ($cuadro != null) {
foreach ($cuadro as $key => $bl) {
$idPer = $bl['idPersona'];
$nomPer = $bl['nomPer'];
$apelPer = $bl['apelPer'];
$genPer = $bl['genPer'];
$fechNacPer = $bl['fechNacPer'];
$telPer = $bl['telPer'];
$celPer = $bl['celPer'];
$corrPer = $bl['corrPer'];
$fotPer = $bl['fotPer'];
$callPer = $bl['callPer'];
示例2: header
} else {
header("Location: ../controller/login.php");
exit;
}
} else {
header("Location: ../controller/login.php");
exit;
}
} else {
header("Location: ../controller/login.php");
exit;
}
$usuario = $_SESSION['usuario'];
$NisPerfil = base64_decode($_GET['id']);
try {
$cuadro = $perfil->seleccionar_datos($NisPerfil);
} catch (Exception $e) {
echo "Ha ocurrido un error";
}
if ($cuadro != null) {
foreach ($cuadro as $key => $bl) {
$idPer = $bl['idPersona'];
$nomPer = $bl['nomPer'];
$apelPer = $bl['apelPer'];
$genPer = $bl['genPer'];
$fechNacPer = $bl['fechNacPer'];
$telPer = $bl['telPer'];
$celPer = $bl['celPer'];
$corrPer = $bl['corrPer'];
$fotPer = $bl['fotPer'];
$callPer = $bl['callPer'];