日期:2014-05-17  浏览次数:20445 次

php写每周数据问题代码


自已写了一段PHP,发现只能读取当今天的数据,前几天的没显示出来,高手看看应怎改。

<?php
@header("content-Type: text/html; charset=utf-8");
require_once 'inc/site_config.php';
require_once 'inc/db_connections.php';
require_once 'inc/function.php';
mysql_query('set character set "utf8"');
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>无标题文档</title>
</head>
<script type="text/javascript" src="http://www.hkjinku.com/statics/js/jquery.js"></script><!--导航JS-->
<script type="text/javascript" src="http://www.hkjinku.com/statics/js/function.js"></script><!--导航JS-->
<script type="text/javascript" src="http://www.hkjinku.com/statics/js/home.js"></script><!--选项卡-->
<style type="text/css">
<!--
@font-face {
 font-family:"微软雅黑";
 src:url("微软雅黑.ttf");

*{margin:0px auto;padding:0px; }
body {
    color: #666666;
    font-size: 12px;
}
a:link,a:visited,a:hover,a:active{color: #666666;text-decoration: none; font-size:12px;}
/*全球经济数据*/
#qqjjsj{float:left; overflow:hidden; width:580px; margin-bottom:10px;}

#qqjjsj_title{
height:30px;
background:url(http://www.hkjinku.com/statics/2013/element.gif) 0 -109px repeat-x;
margin:0 6px;
}
#qqjjsj_title li{
float:left;
width:110px;
height:30px;
line-height: 34px;
font-weight:bold;
font-size:14px;
display:inline;
cursor:pointer;
text-align:center;
}
#qqjjsj_title li.active{
background-image:url(http://www.hkjinku.com/statics/2013/element.gif);
background-position:-2px -60px;
background-repeat:no-repeat;
color:#FFF;
}
#qqjjsj_title li.unactive{
background-image:url(http://www.hkjinku.com/statics/2013/element.gif);
background-position:0 -109px;
background-repeat:repeat-x;
color:#CCC;
}
#qqjjsj_content{ float:left; width:570px; border:#381610 5px solid; overflow:hidden;}

.tab-hd{ height:30px;}
.tab-bd{ height:150px; overflow:hidden;}
.tab-bd .scrollFlow{ height:300px; overflow:hidden;}
.tab-bd .item{ height:150px; display:block; }
.tab-dl dl{ width:100%; height:30px; cursor:pointer;}