% require_once("util.php");
db_open($conn);
if ($_REQUEST["id"]!="") {
db_query("select SERVICIOS.*,TABLAS.titulo as tprod from SERVICIOS,TABLAS where SERVICIOS.id=".$_REQUEST["id"]." and SERVICIOS.visible=1 and TABLAS.id=SERVICIOS.producto",$datos);
if (db_fetch($datos,$PR)) {
%>
:: Bienvenidos a TAIRA Producciones - Arte Latinoamericano __________________________________________________________________
<% $x=0;
db_query("select * from TABLAS where visible=1 and tipo='S' order by orden",$datosm);
do {
if (db_fetch($datosm,$PRm)) {
db_query("select * from SERVICIOS where visible=1 and producto=$PRm->id order by orden",$datos1);
if (db_rows($datos1)>0) {
$x++;
%>
<% db_query("select GALERIAS.*,TABLAS.titulo as categ from GALERIAS,TABLAS where GALERIAS.visible=1 and TABLAS.visible=1 and GALERIAS.categoria=TABLAS.id order by TABLAS.orden,orden,titulo",$datos1);
$categ="";
do {
if (db_fetch($datos1,$PR1)) {
if ($categ!=$PR1->categ) {
$categ=$PR1->categ; %>