Welcome Guest, Not a member yet? Register   Sign In
ActiveRecord join with where clause
#4

[eluser]cyberjunkie[/eluser]
@bubbafoley, I'm not sure how to check query result before returning. It doesn't seem to work when the "user_links" table is empty for a specific user. You were right, the where() function is not the culprit.

I get

Code:
Severity: Notice

Message: Trying to get property of non-object

on codes such as

Code:
echo $row->first_name;

Is there a way to fix this issue?


Messages In This Thread
ActiveRecord join with where clause - by El Forum - 07-05-2011, 01:04 PM
ActiveRecord join with where clause - by El Forum - 07-05-2011, 02:58 PM
ActiveRecord join with where clause - by El Forum - 07-05-2011, 11:49 PM
ActiveRecord join with where clause - by El Forum - 07-06-2011, 12:18 PM
ActiveRecord join with where clause - by El Forum - 07-06-2011, 09:14 PM



Theme © iAndrew 2016 - Forum software by © MyBB