Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/mysql/59.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Php 获取即将到来的生日mysql时间戳_Php_Mysql_Timestamp - Fatal编程技术网

Php 获取即将到来的生日mysql时间戳

Php 获取即将到来的生日mysql时间戳,php,mysql,timestamp,Php,Mysql,Timestamp,我想展示即将到来的生日。 生日通过mysql的时间戳存储 我在前面的问题中发现了以下代码: select * from t order by (case when month(date(from_unixtimestamp(user_birth))) = month(now()) and day(date(from_unixtimestamp(user_birth))) > day(now()) or month(date(

我想展示即将到来的生日。 生日通过mysql的时间戳存储

我在前面的问题中发现了以下代码:

 select *
from t
order by (case when month(date(from_unixtimestamp(user_birth))) = month(now()) and
                day(date(from_unixtimestamp(user_birth))) > day(now()) or
                month(date(from_unixtimestamp(user_birth))) > month(now())
           then 1 else 0
      end) desc,
     month(date(from_unixtimestamp(user_birth))),
     day(date(from_unixtimestamp(user_birth)))
 limit 6
但这不适用于我的服务器上不存在的函数


如何执行此操作?

函数的名称为