lichao032100 发表于 2009-5-13 08:19:13

ci分页的问题

$sql="select * from `cdb_posts` where `subject`!='' and (`subject` like '%".$keyword."%' or `message` like "."'%".$keyword."%')" limit $config['per_page'],$this->uri->segment('3');
这里面的$this->uri->segment('3')不起作用是怎么回事???

lichao032100 发表于 2009-5-13 08:24:08

显示select * from `cdb_posts` where `subject`!='' and (`subject` like '%321%' or `message` like '%321%') limit '10',''
这个$this->uri->segment('3')没有了

lichao032100 发表于 2009-5-13 09:40:53

是我错了,hex原谅下 嘿嘿{:3_58:}{:3_58:}{:3_58:}{:3_58:}

李牧 发表于 2009-5-31 15:14:44

我遇到同样的问题,谁知道怎么回事啊

yuwen002 发表于 2009-5-31 17:11:51

$this->uri->segment('3')
这个取的是index.php后的第三段地址。看看你们的翻页不是第三段吧。
页: [1]
查看完整版本: ci分页的问题