Hi,
I have 2 tables. I need to get data from some columns of both tables.
This what I did:
\"SELECT t1.id, t1.ref, t1.type, t2.address, t2.city FROM t1 JOIN t2 WHERE t1.ref= \'$something\' AND t1.office = t2.ref\"
Instead of returning 1 result, it returns as many rows as t2 long is. It should only return the rows with address and city info associated with the match on table t1!
What am I doing wrong here?
Thanks,
Raoul