Ver Mensaje Individual
  #6 (permalink)  
Antiguo 09/02/2009, 13:56
Avatar de spolli
spolli
 
Fecha de Ingreso: diciembre-2008
Mensajes: 68
Antigüedad: 15 años, 4 meses
Puntos: 0
Respuesta: problema con innerjoin

mira puse como me dijiste pero ahora no me imprime la noticia , pero se guarda en la bd mira esta es mi bd

donde se guarda las noticias
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,
`id_archivos` bigint(20) NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=132 ;

donde se guardan las 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,
`id_noticia` bigint(20) NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=139 ;