if(empty($_GET['Year']) and empty($_GET['Month'])){
$Year = date("Y");
$Month = date("m");
}
else
{
$Year = $_GET["Year"];
$Month = $_GET["Month"];
}一般写成这要要好一点
$Year = empty($_GET['Year']) ? date("Y"): $_GET["Year"];
$Month = empty($_GET['Month'])) ? date("m"): $_GET["Month"];
$Year = date("Y");
$Month = date("m");
}
else
{
$Year = $_GET["Year"];
$Month = $_GET["Month"];
}一般写成这要要好一点
$Year = empty($_GET['Year']) ? date("Y"): $_GET["Year"];
$Month = empty($_GET['Month'])) ? date("m"): $_GET["Month"];
解决方案 »
- zend debugger安装不成功 (为什么没人理我哦!)
- php+oracle下,如何让数据显示,然后每条数据后面都加[编辑]和[删除]
- 心情很烦躁。。。。
- 求助!关于SQL语句排序的问题,类似Supesite平台的资讯分类。
- php4.0 中怎么做对比统计图?
- 文字居中
- 连接oracle817时提示找不到OCILogon(),还要怎么配置?
- 急啊,我的一个win2000server的服务器,有时,别的机子ping的时候,有时,很正常的,但有时,就会出出掉包现象,有时,更严重,ping都不
- 用什么来管理网上的mysql数据库,马上结!!
- php 最小公倍数
- 有没有办法可以让点击一个链接相当于点了一个submit按纽
- ***诚聘***php软件工程师
null != ""?