Welcome Guest, Not a member yet? Register   Sign In
Compare two variables of differents tables with active record..
#5

[eluser]masentinel900[/eluser]
Again thanks by your responses.

see. I need to show a table with 3 rows of the table functions and one row more but of the table ID in the same function.

So I have this. ||name ||lastname ||father || mother|| -> Captions.
I going to show this: ||Diego ||Dominguez ||somenone || 1 || -> these info is from my table x.

Now I want to show this: ||Diego ||Dominguez ||someone || linda || -> The linda data is from my table users.

My table x is like this: ||id||Diego ||Dominguez ||somenone || 1 ||
My table users is like this: ||id||worker ||tall ||george || linda ||

I need that Instead of to show 1 show the name of the mother, The rows are links with a foreign key..

Obvisuly that is a example but this is basically I want to do..


Messages In This Thread
Compare two variables of differents tables with active record.. - by El Forum - 11-16-2012, 02:32 PM



Theme © iAndrew 2016 - Forum software by © MyBB