I have three PHP APIs which have the below queries:
API 1:
$sql = "SELECT number, status, user_id from number_list WHERE disable=0
order by id LIMIT 0,700";
API 2:
$sql = "SELECT number, status, user_id from number_list WHERE disable=0
order by id LIMIT 701,1400";
API 3:
$sql = "SELECT number, status, user_id from number_list WHERE disable=0
order by id LIMIT 1401,2100";
I want take 700 records in each API. For example,
0 to 700 in API 1,
701 to 1400 in API 2 and
1401 to 2100 in API 3 (like shown above).
API 1 is working fine but API 2 and 3 are missing a result.
Why is this occurring and how do I correct it?