hi ,, bradgrafelman
thanks for your help ,, i have been trying to correct my code using your instructions, i got the first month displayed and the first tour price
Februar 2012
09.02.12 | 16.02.12 | My Mermaid | HRG | Brothers | |
now i need to get the other months and tours prices for each month to display like example
February 2012
09.02.12 | 16.02.12 | My Mermaid | HRG | Brothers |
16.02.12 | 23.02.12 | My Mermaid | HRG | Brothers |
23.02.12 | 01.03.12 | My Mermaid | HRG | Brothers |
March 2012
09.02.12 | 16.02.12 | My Mermaid | HRG | Brothers |
09.02.12 | 16.02.12 | My Mermaid | HRG | Brothers |
16.02.12 | 23.02.12 | My Mermaid | HRG | Brothers |
23.02.12 | 01.03.12 | My Mermaid | HRG | Brothers |
etc..
here is my php i got so far
$query_recBookingList = "SELECT
month_name, month_name_en, date_from, date_to, boat, port_du, port_en, routing_du, routing_en, infos, infos_en, pax, booked, price_option, prices_amount, booknow_du,booknow_en, tour_id
FROM
months m
LEFT JOIN prices p
ON p.month_id = m.month_id
ORDER BY month_order, price_order";
$recBookingList = mysql_query($query_recBookingList, $mermaid) or die(mysql_error());
$row_recBookingList = mysql_fetch_assoc($recBookingList);
$totalRows_recBookingList = mysql_num_rows($recBookingList);
mysql_free_result($recBookingList);
?>
and here is the code i use to display the data
<body>
<? while($recBookingList = mysql_fetch_array($resBookingList))
{
?>
<ul>
<li><?php echo $row_recBookingList['month_name']; ?>
<ul>
<li><?php echo $row_recBookingList['date_from']; ?> | <?php echo $row_recBookingList['date_to']; ?> | <?php echo $row_recBookingList['boat']; ?> | <?php echo $row_recBookingList['port_du']; ?> | <?php echo $row_recBookingList['routing_du']; ?> | <?php echo $row_recBookingList['infos']; ?></li>
</ul>
</li>
</ul>
<?
}
?>
</body>