any help on this would be appreciated
I have this code:
$record_count = 200;
$total_record_count = $total_record_count + $record_count;
echo $total_record_count." records processed.<br />";
echo "**************** ALL DONE ****************<br />";
which outputs the following:
200 records processed.
400 records processed.
600 records processed.
800 records processed.
1000 records processed.
1200 records processed.
1400 records processed.
1600 records processed.
1800 records processed.
1969 records processed.
**************** ALL DONE ****************
I am trying to implement a progress bar that I obtained from phpclasses.org and in the example script
$prb = new ProgressBar(30, 30); // create new ProgressBar (width:300px,height:30px)
$prb->left = 50; // position from top
$prb->top = 80; // position from left
$prb->show(); // show the ProgressBar
// move the Bar
for($i=1; $i<=100; $i++) {
$prb->moveStep($i);
usleep(100000);
}
it uses the for() loop to show the progress in the bar and works perfectly
My question is, how can I make the for () use $total_record_count and show progress every 200 of records. How can I put total_records in the for loop instead of $i
Sorry if this sounds stupid and thanks in advance
Regards,
Mike