document.getElementById("progress").innerHTML="
";
document.getElementById("information").innerHTML="'.$i.' row(s) processed.";
';
// This is for the buffer achieve the minimum size in order to flush data
echo str_repeat(' ',1024*64);
// Send output to browser immediately
flush();
// Sleep one second so we can see the delay
sleep(1);
}
// Tell user that the process is completed
echo '';
?>