Ver Mensaje Individual
  #12 (permalink)  
Antiguo 08/02/2010, 12:07
luxo
 
Fecha de Ingreso: enero-2007
Mensajes: 35
Antigüedad: 17 años, 4 meses
Puntos: 2
Respuesta: Multiples registros en un campo

Ok muchas gracias gnzsoloyo, pero tengo una duda. si por ejemplo un producto tiene mas de 5 o por ejemplo tienen 9 especificaciones que son archivos pdf... para eso sólo creo varios campos .. especificacion1, especificacion2,..... especificacion9, etc....

mi tablas actuales son:

TABLE `producto` (
`id_prod` int(11) NOT NULL auto_increment,
`nombre_prod` varchar(100) NOT NULL,
`descripcion_prod` longtext NOT NULL,
`img_prod` longtext NOT NULL,
`categoria` int(11) NOT NULL,
`manual` text NOT NULL,
`especificaciones` longtext NOT NULL,
PRIMARY KEY (`id_prod`),
KEY `categoria` (`categoria`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=85 ;

y


TABLE `categoria` (
`id_cat` int(11) NOT NULL auto_increment,
`cat_nombre` varchar(50) NOT NULL,
`cat_descripcion` longtext NOT NULL,
`cat_img` longtext NOT NULL,
PRIMARY KEY (`id_cat`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=6 ;

las dos se relacionan mediante categorias= id_cat..

ahora tendria que crear otra tabla algo asi??

`id_especificacion` int(11) NOT NULL auto_increment,
`id_producto` varchar(50) NOT NULL,
`especificacion` longtext NOT NULL,

y en productos crear el campo

especificacion para realacionarlas entre si?

espero que me puedan ayudar y muchas gracias siempre por todo...