Welcome Guest, Not a member yet? Register   Sign In
Active record - same table multiple join?
#5

[eluser]danmontgomery[/eluser]
That's the way the fields are returned by MySQL, it has nothing to do with PHP or Codeigniter.

Code:
mysql> select my_status.title from my_status;
+----------+
| title    |
+----------+
| Status A |
| Status B |
| Status C |
| Status D |
+----------+
4 rows in set (0.00 sec)

You would have to alias any identically named fields, regardless of the implementation.


Messages In This Thread
Active record - same table multiple join? - by El Forum - 04-01-2010, 10:17 AM
Active record - same table multiple join? - by El Forum - 04-01-2010, 07:01 PM
Active record - same table multiple join? - by El Forum - 04-06-2010, 12:44 AM
Active record - same table multiple join? - by El Forum - 05-19-2010, 12:13 PM
Active record - same table multiple join? - by El Forum - 05-19-2010, 02:26 PM



Theme © iAndrew 2016 - Forum software by © MyBB