Ver Mensaje Individual
  #8 (permalink)  
Antiguo 29/12/2008, 02:00
Avatar de hernansam
hernansam
 
Fecha de Ingreso: septiembre-2007
Ubicación: Funes , Argentina
Mensajes: 204
Antigüedad: 16 años, 7 meses
Puntos: 0
Respuesta: no andan los join

mira aca te dejo las dos tablas, hice una relacion , pero no se si esta bien

las de la fotos

CREATE TABLE `archivos` (
`id` int(21) NOT NULL auto_increment,
`archivo_binario` blob NOT NULL,
`archivo_nombre` text NOT NULL,
`archivo_peso` text NOT NULL,
`archivo_tipo` text NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=68 ;

y la de la noticia
CREATE TABLE `noticia` (
`id` bigint(20) NOT NULL auto_increment,
`nombre` text NOT NULL,
`cuerpo` text NOT NULL,
`autor` text NOT NULL,
`subcuerpo` text NOT NULL,
`archivos_id` bigint(20) NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=61 ;