我爱Aspx >> C#.Net >> PHP 留言簿(带Oracle数据库分页的显示功能)_PHP实例Header("Location: ./index.php");
exit;
这二行让浏览器重导到 index.php。让使用者看到他的新留言,就完成了留言的动作。
之后来看看留言的内容显示程式。
<html>
<head>
<meta content="text/html; charset=gb2312"
http-equiv=Content-Type>
<title>留言版</title>
</head>
<body bgcolor=ffffff>
<?php
file://---------------------------
// 留言显示程式 index.php
// Author: Wilson Peng
// Copyright (C) 2000
file://---------------------------
$WebmasterIPArray =
ay(
"10.0.1.30", // 管理人员甲的机器 IP
"10.0.2.28" // 管理人员乙的机器 IP
);
$WebmasterIP=false;
for ($i=0; $i<Count($WebmasterIPArray); $i++) {
if ($REMOTE_ADDR == $WebmasterIPArray[$i]) $WebmasterIP=true;
}
putenv("ORACLE_SID=WWW");
putenv("NLS_LANG=american_taiwan.zht16big5");
putenv("ORACLE_HOME=/home/oracle/product/7.3.2");
putenv("LD_LIBRARY_PATH=/home/oracle/product/7.3.2/lib");
putenv("ORA_NLS=/home/oracle/product/7.3.2/ocommon/nls/admin/data");
putenv("ORA_NLS32=/home/oracle/product/7.3.2/ocommon/nls/admin/data");
$handle=ora_logon("user38@WWW","iam3849") or die;
$cursor=ora_open($handle);
ora_commitoff($handle);
$query="SELECT serial, ref, id, alias, ip, TO_CHAR(msgdate, 'yyyy/mm/dd hh:mi:ss'), email, msg FROM guestbook where flag='1' order by msgdate desc";
Ҷƪл˵?
用PHP实现ODBC数据分页显示一例_..[04-28]
数据分页方法新思路,速度非常快..[04-28]
Access2000数据库80万记录通用快..[04-28]
SQL Server 2005: 利用新的ranki..[04-28]
如何在SqlServer与oracel中进行分..[04-28]
关于SQL Server SQL语句查询分页..[04-28]
SQL Server 2005 提供的分页查询..[04-28]
VB6 ADO ListView数据库分页显示..[04-28]
Repeater读取数据并分页 _ASP.NE..[04-28]
Sql server 2005带来的分页便利_..[04-28]
用PHP实现ODBC数据分页显示一例_..[04-28]
在ASP中,用JScript脚本实现分页..[04-28]
原创的自定义分页UserControl 分..[04-28]
数据分页方法新思路,速度非常快..[04-28]
分栏显示记录集的表格演示,并实..[04-28]
用ASP实现长文章用分页符来分页显..[04-28]
Access2000数据库80万记录通用快..[04-28]
SQL Server 2005: 利用新的ranki..[04-28]
模仿PHP写的ASP分页 _ASP技巧[04-28]
ASP.NET程序中用Repeater实现分页..[04-28]