Pagination, can the data array queried using SQL statements be paginated? $list=query($sql); It seems that the paginate() method cannot be used
带砖侍卫
带砖侍卫 2018-03-26 23:56:10
0
5
1642

Can the data array queried using SQL statements be paginated? $list=query($sql); It seems that the paginate() method cannot be used

带砖侍卫
带砖侍卫

不要计较眼前得失,一件看起来吃亏的事情,往往会变成有利

reply all(1)
 

You can use limit

when querying.
  • reply There are two types of paging, one is paging when querying data with mysql, and the other is paging of data queried by sql statement. Is LZ asking about the latter?
    海塞尔维亚 author 2018-03-27 11:16:22
  • reply It is the data queried using sql statement, which is an array.
    带砖侍卫 author 2018-03-27 16:36:10
  • reply Oh, I'll try, thank you
    带砖侍卫 author 2018-03-27 16:36:30
  • reply If LZ wants to paginate the queried array, just convert the array to JSON.
      author 2018-03-27 17:14:56
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template