本文整理汇总了PHP中DbConnect::queryType方法的典型用法代码示例。如果您正苦于以下问题:PHP DbConnect::queryType方法的具体用法?PHP DbConnect::queryType怎么用?PHP DbConnect::queryType使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类DbConnect
的用法示例。
在下文中一共展示了DbConnect::queryType方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: while
echo "<div id='main'>";
$result = DbConnect::queryRest();
while ($row = mysql_fetch_array($result)) {
if (isset($_GET['rest']) && $_GET['rest'] == $row['restid']) {
echo "<div class=\"presssubmenu\" onclick=\" location.href='/order.php?rest=" . $row['restid'] . "';\">";
echo $row['name'] . "</div>";
} else {
echo "<div class=\"submenu\" onclick=\" location.href='/order.php?rest=" . $row['restid'] . "';\">";
echo $row['name'] . "</div>";
}
}
echo "<div id='main'>";
}
if ($type == 2) {
echo "<div id='main'>";
$result = DbConnect::queryType();
while ($row = mysql_fetch_array($result)) {
if (isset($_GET['style']) && $_GET['style'] == $row['id']) {
echo "<div class=\"presssubmenu\" onclick=\" location.href='/order.php?type=2&style=" . $row['id'] . "';\">";
echo $row['name'] . "</div>";
} else {
echo "<div class=\"submenu\" onclick=\" location.href='/order.php?type=2&style=" . $row['id'] . "';\">";
echo $row['name'] . "</div>";
}
}
echo "<div id='main'>";
}
?>
<div id = "footpanel">
<table id ="bottomTable">
<tr>