本文整理汇总了PHP中DbHelper::get_many方法的典型用法代码示例。如果您正苦于以下问题:PHP DbHelper::get_many方法的具体用法?PHP DbHelper::get_many怎么用?PHP DbHelper::get_many使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类DbHelper
的用法示例。
在下文中一共展示了DbHelper::get_many方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: DbHelper
<?php
/* TODO: Add code here */
require_once "../lib/global.php";
$conn_gamelink = new DbHelper("pg_gamelink");
$conn_gameclass = new DbHelper("pg_gameclass");
$rs_gamelink = $conn_gamelink->get_many(" id>0");
$rs_gameclass = $conn_gameclass->get_many("id>0");
?>
<HTML>
<HEAD>
<META NAME="GENERATOR" Content="Microsoft Visual Studio .NET 7.1">
<meta content="text/html; charset=utf-8" http-equiv="Content-Type" />
<TITLE>新游戏发布信息</TITLE>
</HEAD>
<BODY>
<table border="1">
<tr>
<td>编号</td>
<td>游戏类别</td>
<td>游戏名称</td>
<td>链接地址</td>
<td>首字母</td>
</tr>
<?php
while ($row = mysql_fetch_object($rs_gamelink)) {
?>
<tr>
<td><?php
示例2: DbHelper
<?php
require_once "../lib/global.php";
$newDbHelper = new DbHelper("pg_newsclass");
$newsTypeInfos = $newDbHelper->get_many(" id>0");
?>
<HTML>
<HEAD>
<META NAME="GENERATOR" Content="Microsoft Visual Studio .NET 7.1">
<meta content="text/html; charset=utf-8" http-equiv="Content-Type" />
<TITLE>编辑新闻类别</TITLE>
<script language="javascript" type="text/javascript">
function Edit(i)
{
window.location.href="Edit_Del_NewsType.php?id="+i+"&type=1&name="+document.getElementById("name_"+i).value;
}
function Del(i)
{
window.location.href="Edit_Del_NewsType.php?id="+i+"&type=2";
}
function Add(i)
{
window.location.href="Edit_Del_NewsType.php?id="+i+"&type=3&name="+document.getElementById("newtype").value;
}
</script>
</HEAD>
<BODY>
<table border="1">
<?php