I have tried googling but couldn't get any information to echo a record from specific table while I generate the query using JOIN.
Here's my code:
SELECT * FROM tbl1 INNER JOIN tbl2 ON tbl1.id = tbl2.id
I want to get the id
from tbl1
. When I used,
echo $row->id
It does echo the id
column from tbl2
. What should I do to get the record from the table which I want? Thanks!