PHP页面有些问题。我想把IE地址里的参数数字用base64_encode显示出来。
页面有些问题。请高手帮我看一下,
http://www.vipcha.net/history/index.php
这个页面正常。但是点这个页面的列表里的超链接。显示的都是空白的。没有数据。应该是哪里没有转换明白。
请高手指点一下。 谢谢。。
<!--
Code highlighting produced by Actipro CodeHighlighter (freeware)
http://www.CodeHighlighter.com/
--><?php require_once("global.php");
require_once("checkpostandget.php");
$id=$_GET['id'];
if (isset($_POST['yue'])&&isset($_POST['ri'])) {
$yue = $_POST['yue'];
$ri = $_POST['ri'];
}
else {
$yue = date("m");
$ri = date("d");
}
if (isset($id)) {
$query="select * from list Where id=".intval($_GET['id'])."";
}
else
{
$query="select * from list Where M=".$yue." And D=".$ri."";
}
$result=mysql_query($query);
if (isset($id)) {
$c=mysql_query($query);
$r=mysql_fetch_object($c);
$tit=$yue."月".$ri."日-".$r->Title;
}
else {
$tit=$yue."月".$ri."日-历史上的今天";
}
?>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312"><meta http-equiv="X-UA-Compatible" content="IE=7"><title></title>
PHP怎么学习?PHP怎么入门?PHP在哪学?PHP怎么学才快?不用担心,这里为大家提供了PHP速学教程(入门到精通),有需要的小伙伴保存下载就能学习啦!
Copyright 2014-2025 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号