Best way to display a table column-first

Discussion in 'PHP' started by hostingcoupon, Nov 6, 2007.

  1. #1
    The mysql table looks like:
    ================================
    Prop1 Prop2 Prop3 Prop4 Prop5
    Name1 11 12 13 14 15
    Name2 21 22 23 24 25
    Name3 31 32 33 34 35
    ================================

    I want to display it like:
    ================================
    Name1 Name2 Name3
    Prop1 11 21 31
    Prop2 12 22 32
    Prop3 13
    Prop4 14
    Prop5 15 .........
    ================================

    Any good ideas?
    Thanks
     
    hostingcoupon, Nov 6, 2007 IP
  2. bartolay13

    bartolay13 Active Member

    Messages:
    735
    Likes Received:
    14
    Best Answers:
    1
    Trophy Points:
    98
    #2
    one way of doing this one is to configure it in CSS

    i did this one by putting the records in an unordered list

    
    <li>
    <ul>records</ul>
    <ul>records</ul>
    <li>
    
    HTML:
    you will be dealing more on CSS with this one.
    h-alignment, padding, etc... etc...
     
    bartolay13, Nov 6, 2007 IP