2017年7月10日

让mysql返回的结果按照传入的id的顺序排序

摘要: 比如id为 1,3,5,44,66,32,21,6 那么返回的结果顺序也是这个顺序 $sql = "select * from ".$this->tableName()." where id in ($ids) order by field(id, ".$ids.") "; 阅读全文

posted @ 2017-07-10 17:47 dongruiha 阅读(2612) 评论(0) 推荐(0)

配置 Nginx 错误页面优雅显示

摘要: [root@localhost ~]# cat /usr/local/nginx/conf/nginx.conf ...... http { location / { root html/www; index index.html index.htm; error_page 400 401 402 403 40... 阅读全文

posted @ 2017-07-10 15:41 dongruiha 阅读(1400) 评论(0) 推荐(0)

php register_shutdown_function响应error 配合error_get_last 捕获错误

摘要: 转自: http://blog.csdn.net/a757291228/article/details/62231125 阅读全文

posted @ 2017-07-10 15:07 dongruiha 阅读(149) 评论(0) 推荐(0)

导航