I'm looking to see if my concept is correct. In my code below, I'm not writing all the exact syntax, just trying to illustrate my thought process.
First I'm going to grab the variable from the URL (this is a common family ID for all 3 tables)
Then I'm going to do my first query off of the first table something like this -
Expand|Select|Wrap|Line Numbers
- $query1="select * from table_1 where family ID like $var"
Expand|Select|Wrap|Line Numbers
- $result1=mysql_query($query1)
- while $row=$result
- <tr>
- <td>$1</td>
- <td>$2</td>
- </tr>
Expand|Select|Wrap|Line Numbers
- query2="select * from table_2 where ID like $var"
Expand|Select|Wrap|Line Numbers
- $result2=mysql_query($query2)
- while $row=$result2
- <tr>
- <td>$1_1</td>
- <td>$2_1</td>
- </tr>