Ok. Let me clarify further. Since
31102/32=971.9375
Rounded up to
972
as mentioned in this formula:
PHP Code:
$num=round(count($trInnerHTML[1])/32);
Each page should have
972 records to insert in the database table.
But page 1 will insert records
1-972;
page 2 will insert records
973-1945 (which is
973+972);
page 3 will insert records
1946-2918 (which is
1946+972);
and so on up to
31102.