Ver Mensaje Individual
  #1 (permalink)  
Antiguo 26/01/2010, 11:04
luxo
 
Fecha de Ingreso: enero-2007
Mensajes: 35
Antigüedad: 17 años, 3 meses
Puntos: 2
Ayuda Catalogo Productos

Amigos, desde ya muchas gracias por todo, han sido de mucha ayuda para mi trabajo, tengo una duda, necesito relacionar las tablas para que me muestre los productos pro categorias, aqui las tablas:

CREATE 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=1 ;

CREATE 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,
`especificaciones_prod` longtext NOT NULL,
PRIMARY KEY (`id_prod`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;


Entonces lo que nesito es que cuando haga click en cat.php?id=1 me aparezcan todos los productos asociados a esa categoria.

Espero terminar luego el código para compartirlo..

Saludos.-