php - mysql inner join 3 tables -


I'm getting the error I wonder where I was wrong? Can you please help?

  $ tour = mysql_query ("Select * Include tour by tour tour_property_array p at t.tour_id = p.tour_id INNER join tour_prices tp on p.tour_id = tp.tour_id and t Tour_status = 'Aktif' Where t.tour_category_id = ". $ Category_id." And t.date_month = '"date $."' And p.tour_propert_id = ". $ Property_id." ");  

  $ tourism = mysql_query ("select + tour inner join tour T.tour_id = p.tour_id INNER on tour_property_array p p.tour_id = tp.tour_id and t.tour_status = 'Aktif' where t.tour_category_id = ". $ Category_id." And t.date_month = '"$ date . "" And p.tour_propert_id = ". $ Property_id." ");  

This should be used by

mysql_query (" select from "tour) Join TUROR_ID = p.tour_id INNER join tour_prices TP on p.tour_id = tp.tour_id and t.tour_status = 'Aktif' WHERE t.tour_category_id = '$ category_id' and t.date_month = '$ date 'And p.tour_propert_id =' $ property_id '");

Comments

Popular posts from this blog

ios - How do I use CFArrayRef in Swift? -

eclipse plugin - Run java code error: Workspace is closed -

c - Error on building source code in VC 6 -