I am new to PHP and programming in general. I have looked through the forum and searched all over the web for answers, got help from a serious programmer friend (not a php programmer though) and still have one issue that I can’t seem to solve. I am hoping it is some simple quirk that I am just not aware of.
I wrote a program to take a txt file and display the data in a variety of ways in the browser window. Everything is working fine with one exception. At the end, I use a while loop to echo html code which will display all my data. On the last pass through the loop, it seems like some of the code is just being ignored. I currently have it set to echo 2 line breaks at the end of each loop to make space before writing out the data for the next loop. It works on all but the last one, and any code that runs after all the loops actually gets displayed above or on top of the last loop (such as echoing my date variable. The page is here: mlkap.com/reptrak.php and here is the php code section that I’m having issues with:
[php]<?php
$counter_display = 0;
do
{
echo "
“.$salesrep_namesinorder[$counter_display].” |
".$salesrep_ordercounttoday[$salesrep_namesinorder[$counter_display]]." |
|
---|---|---|
Current Orders | Current Daily Average | Needed Daily Average |
“.$salesrep_numoforders[$counter_display].” | ".$salesrep_actualdailyaverage[$counter_display]." | ".$salesrep_neededdailyaverage[$counter_display]." |
Par Number | Par Daily Average | Month End Quota |
“.$salesrep_quotaasofday[$counter_display].” | ".$salesrep_quotadailyaverage[$counter_display]." | ".$salesrep_quotainorder[$counter_display]." |