Page 1 of 1

What script for Family tree

Posted: Tue Mar 25, 2003 11:26 am
by Rent a Cop
I am trying to make a list like a family tree for a bunch of friend involved in a online game.

I've been playing all day with PHP trying to display my SQL database of the names and thier commader links in a HTML table format but am having great troubles due to the structure that HTML uses for tables. ( mainly because I wish to go from left to right rather than top to bottom.)

still a bit of a novice at this so be gentle!

thanx :?

Posted: Tue Mar 25, 2003 5:34 pm
by McGruff
layers?

Posted: Wed Mar 26, 2003 9:47 am
by Zoram
an idea :

try something like this...

Code: Select all

<table width="100%" border="0" cellspacing="0" cellpadding="0">
  <tr valign="middle"> 
    <td width="25%" rowspan="8">Name 1</td>
    <td width="25%" rowspan="4">Name 2</td>
    <td width="25%" rowspan="2">Name 4</td>
    <td width="25%">Name 8</td>
  </tr>
  <tr valign="middle"> 
    <td>Name 9</td>
  </tr>
  <tr valign="middle"> 
    <td rowspan="2">Name 5</td>
    <td>Name 10</td>
  </tr>
  <tr valign="middle"> 
    <td>Name 11</td>
  </tr>
  <tr valign="middle"> 
    <td rowspan="4"><p>Name 3</p>
      </td>
    <td rowspan="2">Name 6</td>
    <td>Name 12</td>
  </tr>
  <tr valign="middle"> 
    <td>Name13</td>
  </tr>
  <tr valign="middle"> 
    <td rowspan="2">Name 7</td>
    <td>Name 14</td>
  </tr>
  <tr valign="middle"> 
    <td>Name 15</td>
  </tr>
</table>
the idea might work... :wink: I think that you could come up with some fancy loops to dynamically create the table... have fun with that!