I stuck in a problem that I want to show all the reviews of users own listing in a CodeIgniter project. There is two table in the database one is reviews and other is listings.
reviews table
listings table
common attribute is user_id and listed_by in both the tables. Now I want to get all the reviews of the listing which is created by user_id(2)
. Is it possible?