Hi
I'm having a bit of a "thick" day today. I swear I've done this before but forgotten how. Lets say I have a database full of names and another full of address (in no particular order). How would I pull the information from the two databases so the names and the addresses are displayed in the right order with the right person. To make it easier, there is an ID that relates to the names and addresses.
E.g.
DB1 - table.names
ID | Name
1 | John
2 | Peter
DB2 - table.addresses
ID | Address
2 | London
1 | Birmingham
So the one while statement will pull the information from them both. Although I think I should be using a for statement? I'm not sure.
to give me:
<table>
<tr>
<th>name</th>
<th>address</th>
</tr>
<tr>
<td>Peter</td>
<td>London</td>
</tr>
<tr>
<td>John</td>
<td>Birmingham</td>
</tr>
</table>
Thanks for your time
Ant