I need work with 2 tables, I tried with inner join, place of 4 result, its just showing two result from a table, I'm pasting both query, please look on it and help me, I will be thankful to all of you.
<? 
    $query5 = "SELECT * FROM escorts_touring order by es_tou_id";
    $result5 = mysql_query($query5);
    while($row5 = @mysql_fetch_array ($result5, MYSQL_ASSOC)) 
    {
        $es_touring_city = $row5['es_touring_city'];
    }
?>
<?php 
        echo $sql="SELECT e.es_id, e.es_sex, e.service_type, 
                          e.working_name,  t.es_tou_id, t.es_id, 
                          t.es_touring_city, t.es_touring_start_date, 
                          t.es_touring_end_date 
                    FROM escorts AS e 
                        INNER JOIN escorts_touring AS t 
                            ON e.es_id = t.es_id 
                    where es_touring_city = '$es_touring_city'";
        $result=mysql_query($sql); 
        $rowcount=mysql_num_rows($result);
        $counter=0;
        $count=0;
        while($row = @mysql_fetch_array ($result, MYSQL_ASSOC)) 
        {
            if($counter++%4==0)print"</div><div class=\"row\"></div>";
            $es_sex  =$row['es_sex'];
            $service_type=$row['service_type'];
            $working_name=$row['working_name'];
            $es_id=$row['es_id'];
            $es_tou_id = $row['es_tou_id'];
            $es_touring_city = $row['es_touring_city'];
            $es_touring_start_date = $row['es_touring_start_date'];
            $es_touring_end_date =$row['es_touring_end_date'];
            $newstartDate = date("dS F, Y", strtotime($es_touring_start_date));
            $newendDate = date("dS F, Y", strtotime($es_touring_end_date));
            $query = "SELECT * FROM escorts_image where es_id = $es_id";
            $result_image = @mysql_query ($query);
            $row_image = @mysql_fetch_array ($result_image, MYSQL_ASSOC);
            $image = $row_image['image'];
            $dest="uploads";
        ?>
when I'm printing/echo
$es_touring_city = $row5['es_touring_city'];
its showing 4 result.
but when I'm using $es_touring_city in 2nd query, it just shows 2 results with image.
If i m not very clear talk.
Thanks,
 
     
    