For ($breed = Lab) Add all $charge

Discussion in 'PHP' started by JasonGreen, Oct 8, 2009.

  1. #1
    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
     
    Last edited: Oct 8, 2009
    JasonGreen, Oct 8, 2009 IP
  2. JasonGreen

    JasonGreen Peon

    Messages:
    13
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #2
    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?
     
    JasonGreen, Oct 8, 2009 IP