复制代码 代码如下:
$now = time(); //获取当期的日期
$sql="select * from `team` where end_time>$now ORDER BY sort_order limit 0,4";
复制代码 代码如下:
mysql> select current_timestamp();
+---------------------+
| current_timestamp() |
+---------------------+
| 2010-01-18 21:24:37 |
+---------------------+
1 row in set (0.00 sec)
mysql> select current_date();
+----------------+
| current_date() |
+----------------+
| 2010-01-18 |
+----------------+
1 row in set (0.00 sec)
mysql> select current_time();
+----------------+
| current_time() |
+----------------+
| 21:24:46 |
+----------------+
1 row in set (0.00 sec)
新闻热点
疑难解答