Welcome Guest, Not a member yet? Register   Sign In
Using model functions in View
#3

[eluser]daparky[/eluser]
Thanks for your reply Zorancho. I tried a left join, i was querying the client table and joining the domains table in where client.id = domain.client_id. I was having issues doing it this way because of duplicate results.

What was happening was that depending on how many domains the client had, the result of that client kept repeating until the number of domains reached. For example:-

Client 1 has ten domains
The loop repeated Client 1 ten times, each object had the different domain in.

What i wanted to achieve (i achieved this using the above method) was listing all clients, displaying info from the client table and then going into the domain table and getting all the domains the client holds.


Messages In This Thread
Using model functions in View - by El Forum - 09-20-2009, 07:12 AM
Using model functions in View - by El Forum - 09-20-2009, 07:19 AM
Using model functions in View - by El Forum - 09-20-2009, 08:14 AM
Using model functions in View - by El Forum - 09-20-2009, 08:29 AM
Using model functions in View - by El Forum - 09-20-2009, 09:22 AM
Using model functions in View - by El Forum - 09-20-2009, 11:59 AM
Using model functions in View - by El Forum - 09-20-2009, 02:36 PM
Using model functions in View - by El Forum - 09-20-2009, 03:42 PM
Using model functions in View - by El Forum - 09-20-2009, 05:58 PM
Using model functions in View - by El Forum - 09-20-2009, 06:41 PM
Using model functions in View - by El Forum - 09-20-2009, 07:52 PM
Using model functions in View - by El Forum - 09-21-2009, 01:31 AM
Using model functions in View - by El Forum - 09-21-2009, 06:45 AM



Theme © iAndrew 2016 - Forum software by © MyBB