Jump to content

ginerjm

Members
  • Posts

    6,906
  • Joined

  • Last visited

  • Days Won

    99

Posts posted by ginerjm

  1. Please use the proper forum tags to post the RELEVANT code here for us to view. Many of us don't go to other sites for fear of the risks.

     

    Show us the html form for the dropdown and the php code that receives it, validates it and where the failure occurs.

     

    Have you done any debugging to see what you are getting from your form yet?

  2. Because the 31 row occurs first, the statement fails? Is that what you really mean?

     

    If committeeid is 31 and 1 in your two rows, why would the 31 even be selected? Is your getcolumnval method flawed in some way?

     

    PS - you have way too many php tags in this snippet. You don't need to turn it on and turn it off all the time.

  3. As long as you realize that if 'core' is your master class and 'one' and 'two' are classes that extend 'core', you can't use just 'core' and access the methods that classes 'one' or 'two' define. You made it sound like that in your reply to my post.

  4. Your use of the terms 'horizontal table' and vertical table confuse me. What I see is that you want to place all images belonging to a 'player' in one row next to the players name/id/?. That is apparent and easily doable with one query.

     

    Your use of group by in your query is probably not right. IMO you simply need an order by since you are not using any summary operators in your query that you need to use a group by clause.

     

    The tricky part of your output is going to be building the row but not finishing it until you encounter a record with a new player value. At that point you close the last td element and the row and begin a new row, output the player and then begin the td element for the file and any ensuing files in the following records. Simply requires that you retain a 'last_player' value and check it with each new record.

  5. The reason to have a class that extends another class is to add some functionality to the parent class ie, the first class. Your goal of having a class called 'core' that will use all the classes extended from it is IMHO a bit backwards. Yes the 'core' class can be used by all your scripts but the functionality of the child classes that extend it will not be available unless you include them and construct objects of each child class. Then those items will have all the functionality of the specific class they belong to as well as the 'core' class.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.