Home  >  Article  >  Backend Development  >  PHP页面有些有关问题。小弟我想把IE地址里的参数数字用base64_encode显示出来

PHP页面有些有关问题。小弟我想把IE地址里的参数数字用base64_encode显示出来

WBOY
WBOYOriginal
2016-06-13 13:37:501002browse

PHP页面有些问题。我想把IE地址里的参数数字用base64_encode显示出来。
页面有些问题。请高手帮我看一下,
http://www.vipcha.net/history/index.php
这个页面正常。但是点这个页面的列表里的超链接。显示的都是空白的。没有数据。应该是哪里没有转换明白。
请高手指点一下。 谢谢。。


PHP code
<!--

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>
Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn