one query instead of four - is it possible?
- by Syom
i must get data from four tables. i wrote the script with four queries, but i use it in ajax, and i wan't to do it by one query.
here is queries...
$query1 = "SELECT `id`,`name_ar` FROM `tour_type` ORDER BY `order`";
$query2 = "SELECT `id`,`name_ar` FROM `hotel_type` ORDER BY `order`";
$query3 = "SELECT `id`,`name_ar` FROM `food_type` ORDER BY `order`";
$query4 = "SELECT `id`,`name_ar` FROM `cities` WHERE `id_parrent` = '$id_parrent' ORDER BY `name_ar`";
is it possible to write in one query?
thanks