图片上传的 form表单必须添加 enctype="multipart/form-data"属性
查询语句的写法
$cate_info = D(‘articlecate‘)->where(‘id=‘.$cate_id)->find();
$links=$links->field(‘links_name‘)->order(‘sort desc‘)->select();
$res_rem=$article->where("cateid =".$id." and rem=1")->order(‘time desc‘)->field("id")->limit("0,2")->select();
原文地址:http://8818968.blog.51cto.com/8808968/1971701