print("<p>TOTAL INCOME FROM PAINT CONTRACTS: ");
print("$".number_format($total, 2)."</p>");
print("<p>AVG DAILY INCOME FROM PAINT CONTRACTS: ");
print("$".number_format($avgDailyIncome, 2)."</p>");
print("<p>NUMBER OF DAYS with NO INCOME: $badDays.</p>");
?>
</body>
</html>
I need to amend this php to use a FOR loop to read the 7 lines from the file and add the total income, the average income and the number of days with no income. Can anyone help me on this? I am soooo lost! Thanks!
Thanks Adee, I just got this to work! Yay!!! Now if I needed to show each line as Monday through Sunday, how would I do that, with the first line starting out as Monday and Showing income for each day of the week?
Thanks,
Goop
Last edited by goop; 11-27-2011 at 12:33 AM..
Reason: Got it to run, but needed additional help.
I just got this to work! Yay!!! Now if I needed to show each line as Monday through Sunday, how would I do that, with the first line starting out as Monday and Showing income for each day of the week?
I just got this to work! Yay!!! Now if I needed to show each line as Monday through Sunday, how would I do that, with the first line starting out as Monday and Showing income for each day of the week?