You might see some changes from the code above since I'm working on this.

gilgalbiblewheel
—
2011-03-24T17:36:49Z —
#5

Ok. Let me clarify further. Since 31102/32=971.9375Rounded up to 972as mentioned in this formula:

$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.