ci多表查询分页问题
我建立了两张表,一张是product表,一张是category表,category.id=product.typeid sql语句是 select product.*,category.typename,category.id as cid from product inner join category on gxm_product.typeid = gxm_category.id where isdel=0 and disprice=1 order by updatetime desc现在的问题就是两张表建立的连接 如何实现分页呢? 之前只有实现当张表的分页操作!刚接触ci的新手,大神勿喷!...本人QQ:528999267 希望大神们给解答下,搞了好久了!对搜索的也是一窍不通!
一样的,在sql后加上limit就行了。。。分页与连不连表没有关系
页:
[1]