Welcome Guest, Not a member yet? Register   Sign In
Looping through left joined tables
#2

[eluser]kgill[/eluser]
When you use joins in a one to many relationship you get repeating columns, that's the nature of a database and how it's supposed to work. You're one step away from the solution though, you're already comparing if the currentProjectID is not equal to the p_id, but you aren't storing the p_id in currentprojectid so each time it loops it's always true and will always print.


Messages In This Thread
Looping through left joined tables - by El Forum - 10-04-2009, 01:53 PM
Looping through left joined tables - by El Forum - 10-04-2009, 09:20 PM
Looping through left joined tables - by El Forum - 10-05-2009, 08:10 AM
Looping through left joined tables - by El Forum - 10-05-2009, 08:27 AM
Looping through left joined tables - by El Forum - 10-05-2009, 09:56 AM



Theme © iAndrew 2016 - Forum software by © MyBB