本文整理汇总了PHP中dao::detapro方法的典型用法代码示例。如果您正苦于以下问题:PHP dao::detapro方法的具体用法?PHP dao::detapro怎么用?PHP dao::detapro使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类dao
的用法示例。
在下文中一共展示了dao::detapro方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: unset
}
switch ($op) {
case 1:
unset($_SESSION['lista']);
$objDAO = new dao();
$lista = $objDAO->listarUlt();
$_SESSION['lista'] = $lista;
header('Location: ../view/index.php');
break;
case 2:
unset($_SESSION['detapro']);
$objDAO = new dao();
$codpro = $_REQUEST['codpro'];
$ex = $_REQUEST['ex'];
$_SESSION['codpro'] = $codpro;
$detapro = $objDAO->detapro($codpro);
$_SESSION['detapro'] = $detapro;
if ($ex == 1) {
header("Location: ../view/editarprod.php");
} else {
header("Location: ../view/detallepro.php");
}
break;
case 3:
unset($_SESSION['proxsub']);
$objDAO = new dao();
$codsub = $_REQUEST['codsub'];
$_SESSION['codsub'] = $codsub;
$proxsub = $objDAO->proxsub($codsub);
$_SESSION['proxsub'] = $proxsub;
header('Location: ../view/prodxsub.php');