php+mysql downloads data in a loop based on ID, each time next
。。。。
。。。。 2020-01-06 22:14:35
0
3
1099

For example, the table content is

id name

1 a

2 b

3 c

4 d

th The first download id is 1

The first download id is 2

The first download id is 3

The first download id is 4

## After #id is 4, it starts from 1 again and keeps looping indefinitely. It must be able to support high concurrency!

Before I used to save the id in another table, every time
。。。。
。。。。

reply all(2)
junwind

First sort in forward order and download one round, until the last id, then reverse sort and download one round, until the last id, and then in forward order, and continue indefinitely

  • reply How to design the database?
    。。。。 author 2020-01-14 17:20:47
。。。。

The first download id is 1

The second download id is 2

The third download id is 3

The fourth download id is 4

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!