I want to fetch data from the database
. I have three tables in my database like: listing_master_residential
, listing_master_condo
and listing_master_commercial
.
There are three tables and there is one primary key Ml_num
in all tables. I want to search the data form one table which matches mls number
table.
$sql ="SELECT * FROM listing_master_residential ,listing_master_commercial, listing_master_condo WHERE Ml_num=$option";
i want to show only those data to match ml_num
in above table