It is necessary to parse participants from the VC group. As a result, I can not think through the logic of the application. There is an early number of participants (for example 11111 ) and using the VC link structure to navigate through the pages where these same participants are displayed, for example, offset = number (the minimum value is 0 - the maximum number of participants ). So I decided to use the substitution of values . Ie, like VC itself decided to take 50 per page (this is the maximum). In order to move to the second, you need to add another 50. And so on. I implemented the cycle itself in the following way - I divided the number of participants into 50 and received how many times I had to complete it. But as a result, what was not divisible by 50 was not displayed (as I understand it).
Here is a small piece of code:
$kolvo = 11121; $res = $kolvo / 50; echo "$res <br>"; $i = 0; $link = 0; while ($i <= $res) { echo "$i =members&offset=$link <br>" $link+=50; $i++; }
$resper unit more if there is a balance? - Saidolim