I am trying to increment 707185109 to the amount of pages that are in a mysql database. However that isn't working for me. So can someone please help me out here? Thanks in advance.

Here is the code that I am working with:
Code JavaScript:
// get the total amount of pages
var b = <?php echo $total_pages; ?>;
// place menu number into a variable
var num = 707185109;
for (var i = num; i < b; i++) {
	var c = document.write(_0 + i + _0);
}