淡定、微笑 发表于 2012-3-21 18:53:18

ci非空查询 急

                        $this->db->select('url','name','clientid','people.surnameas client');$this->db->where('client_name!=','');$this->db->limit(5);$this->db->from('sites');$this->db->join('people','sites.clientid=people.id');$this->db->orderby("name","desc");$query= $this->db->get();

$this->db->where('client_name!=','');这样写是错的 , 该怎么写呢,我想实现的功能就是只显示不为空的内容,急啊在线等答案呀

jeongee 发表于 2012-3-21 19:10:21

!=前面空一格

淡定、微笑 发表于 2012-3-21 19:12:11

jeongee 发表于 2012-3-21 19:10 static/image/common/back.gif
!=前面空一格

太感谢了 谢谢 :loveliness:
页: [1]
查看完整版本: ci非空查询 急