[exec]
echo’

‘; echo»; echo»;
echo’Экскурсия’;
echo’Время’;
echo’Цена, руб’;
echo’Забронировать’;
echo»;
mysql_connect(‘localhost’, ‘cg17945_turs’, ‘12481248z’);
mysql_select_db(‘cg17945_turs’);
$r = mysql_query(‘SELECT e.id_eks,e.day_eks, e.name_eks, e.opis_eks, p.old_price, p.baby_price, p.bilold_price, p.bilbaby_price FROM eks e, priceeks p WHERE (p.id_eks = e.id_eks)’);
$myrow = mysql_fetch_array($r);
do
{
echo »
«;
echo ‘
‘; echo »;
echo »;
echo »;
echo $myrow[name_eks] . ‘
‘;
echo $myrow[opis_eks];
echo »;
echo ‘
‘;
$r2 = mysql_query(‘SELECT t.time, e.name_eks FROM timeeks t, eks e WHERE (e.id_eks = t.id_eks) AND (e.id_eks = ‘ . $myrow[id_eks] . ‘)’);
$bdtime = mysql_fetch_array($r2);
do
{
echo ‘Экс в ‘ . $bdtime[time] . ‘
‘;
}
while($bdtime = mysql_fetch_array($r2));
echo »;
echo ‘
‘;
echo ‘Взрослый :’ . $myrow[old_price] . ‘ рублей
‘;
echo »;
echo ‘Детский :’ . $myrow[baby_price] . ‘ Рублей
‘;
echo »;
echo ‘+ входные билеты
‘;
echo ‘Вз.Билет :’ . $myrow[bilold_price] . ‘ Рублей
‘;
echo »;
echo ‘Дет. Билет :’ . $myrow[bilbaby_price] . ‘ Рублей
‘;
echo »;
echo »;
echo ‘
‘;
echo »

Взрослый

«;
echo »

Дети

«;
echo «

«;
echo »;
echo »;
}
while ($myrow = mysql_fetch_array($r));
[/exec]

День недели
‘;
echo $myrow[day_eks];
echo ‘‘;
echo ‘