Question about inserting tables inside tables?

Discussion in 'PHP' started by mokimofiki, Jul 14, 2008.

  1. #1
    say that I have a table and when I click a link I want it to add whatever was clicked into a table and then when clicking another link it will add the new link into the second table and so on.

    Example:

    Table1:
    <table background="sky.gif">
    <tr>
    <td>
    Add info here when first link clicked
    </td>
    </tr>
    </table>
    Code (markup):
    Table2:
    <table background="sky.gif">
    <tr>
    <td>
    
    <table background="birds.gif">
    <tr>
    <td>
    Add info here when second link clicked
    </td>
    </tr>
    </table>
    
    </td>
    </tr>
    </table>
    Code (markup):
    Table3:
    <table background="sky.gif">
    <tr>
    <td>
    <table background="birds.gif">
    <tr>
    <td>
    
    
    <table background="plane.gif">
    <tr>
    <td>
    Add info here when third link clicked</td>
    </tr>
    </table>
    
    </td>
    </tr>
    </table>
    </td>
    </tr>
    </table>
    Code (markup):
    Basically just stacking tables with the new information in the new table.

    What I'm doing I have posted in another thread but i'm going 2 different directions with my thoughts so i figured a new thread might make it easier to understand.

    Basically the tables will keep inserting into each other as links are clicked and each table will come from a different page. Also each table will have a different background image with different parts of the image transparent. These transparent images will then create a new image depending on the order that you stack the tables.

    If a static example is needed I can produce one that forces you to click each link in only one order. (I want any link to be able to be clicked and the table be added with its background)
     
    mokimofiki, Jul 14, 2008 IP
  2. mokimofiki

    mokimofiki Well-Known Member

    Messages:
    444
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    130
    #2
    bump....

    Do I have no replies because i'm not explaining it very well or is it just that nobody knows how to do it? (or wants to take the time :( )
     
    mokimofiki, Jul 15, 2008 IP
  3. PET

    PET Member

    Messages:
    86
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    43
    #3
    First try use DIV's. Then, this is not a PHP issue is a HTML/CSS issue.
     
    PET, Jul 15, 2008 IP
  4. mokimofiki

    mokimofiki Well-Known Member

    Messages:
    444
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    130
    #4
    My example is in html but I would like to make stackable images based on links clicked in php so that visitors would be able to click an image to place it on top of another. (or drag and drop it)

    Example: Image of a house is the starting image and there are 3 shutter colors and 3 siding colors. They can click to add red shutters and they pop on top of the image over the old shutter color. Then they pick cedar siding and it goes on top of that now being a Cedar house with red shutters.

    (basically like the interactive car buildups you can do on dealer sites but with homes)
     
    mokimofiki, Jul 15, 2008 IP