Ver Mensaje Individual
  #6 (permalink)  
Antiguo 25/03/2012, 21:24
elefren
 
Fecha de Ingreso: marzo-2012
Mensajes: 7
Antigüedad: 12 años, 1 mes
Puntos: 0
Respuesta: Como demonios hago esta consulta xD

Os añado la info de las tablas para mas info...
Cita:
CREATE TABLE `filtros` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`tipo` int(11) NOT NULL,
`filtro` text NOT NULL,
`idpadre` int(11) NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 ;

CREATE TABLE `locales` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`titulo` text NOT NULL,
`direccion` text NOT NULL,
`web` text NOT NULL,
`email` text NOT NULL,
`telefono` int(11) NOT NULL,
`promos` varchar(500) NOT NULL,
`apertura` varchar(100) NOT NULL,
`cierre` varchar(11) NOT NULL,
`dias` text NOT NULL,
`descripcion` longtext NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 ;

CREATE TABLE `rel_locales_filtros` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`idl` int(11) NOT NULL,
`idf` int(11) NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 ;