Wondering how to do this effectively:
I have 4 tables (EXAMPLE).
1] Users: ID | NAME | USERNAME
2] Project: ID | PROJNUMBER | CONTACT
3] Time: ID | START | STOP | USERNAME | PROJECTID
4] User2Project: USR | PRJ
Relative info is Tied through TABLE 4 (User2Project) & Table 3.
Where User2Project'USR' = Users'ID'
and User2Project'PRJ' = Project'ID'
also Time'USERNAME' = Users'ID'
and Time'PROJECTID' = Project'ID'
All INTEGERS.
I dont know if this is possible, but how can I get the php to dynamically translate those values, so when I list All entries in Table 3 or 4, my USERNAMES and Projects show the 'USERNAME' or 'PROJECTNUMBER' value of the corresponding ID instead of '1,2,3,etc."
<?php do {
echo $row_TABLE3['USERNAME']; #I want corresponding $row_TABLE1['USERNAME'];
echo $row_TABLE3['PROJECTID']; #I want corresponding $row_TABLE2['PROJNUMBER'];
}
?>
did I make this question more complicated than it should be?