I am not attempting to have the correct codes just thrown at me but I really need to understand why I’m having the problems I am. I have several books, but they are all the same in that they tell you what functions are but not really how to use them in an applied way.
There are essentially three things wrong with my code. As you can see I am including another php file to pull all the information from ($petspa).
I have the While with the format I need. But I am unable to insert a proper table. Also I want to take each breed and do a summary of total revenue from that breed as attempted once in the For (I should just be able to repeat that For While for each breed.) Finally I need a simple array to display the single breed that brings in the most revenue, showing only its breed type and total revenue.
The while works, but I can’t do a simple table for it to appear organized.
The for does not work at all.
And I have no idea how to pull out an array for the single breed and total profits
calculate $breed $charge in loops and arrays
Moderator: General Moderators
-
JasonGreen
- Forum Newbie
- Posts: 7
- Joined: Sun Sep 13, 2009 10:22 am
calculate $breed $charge in loops and arrays
Last edited by JasonGreen on Thu Oct 08, 2009 1:16 pm, edited 1 time in total.
-
JasonGreen
- Forum Newbie
- Posts: 7
- Joined: Sun Sep 13, 2009 10:22 am
Re: calculate $breed $charge in loops and arrays
I haven't got to the array yet. i was hoping it would be more sefl explainatory after addressing the for problem and hopefully seeing what I was doing wrong with the tabel. I was up til 3 playing with that. I just included the need for an array because it seems asking about one detail at a time just gets more questions than comments. Ya know?