Ver Mensaje Individual
  #1 (permalink)  
Antiguo 10/08/2007, 16:48
Avatar de sluis_angel30
sluis_angel30
 
Fecha de Ingreso: mayo-2005
Mensajes: 45
Antigüedad: 19 años, 11 meses
Puntos: 0
Pregunta ayuda con script sistema de noticias

Hola gente tengo una dificultad en relacion mis tablas para poder ver en una consulta los datos...pero deseo hacer las consultas independientemente cada categoria...aqui dejo mis tablas... a ver si me dan la mano:


#
# Table structure for table 'categorias'
#

CREATE TABLE `categorias` (
`id_categoria` int(3) unsigned NOT NULL auto_increment,
`catname` varchar(40) NOT NULL default '',
PRIMARY KEY (`id_categoria`)
) TYPE=MyISAM;



#
# Table structure for table 'noticias'
#

CREATE TABLE `noticias` (
`id` int(11) unsigned NOT NULL auto_increment,
`titulo` text NOT NULL,
`resumen` text NOT NULL,
`imagen` varchar(255) NOT NULL default '',
`cuerpo` text,
`id_categoria` int(3) NOT NULL default '0',
PRIMARY KEY (`id`)
) TYPE=MyISAM;

-------------------------------------------------------------------

Ademas como podre agregar una nueva categoria q se muestre en el campo id_categoria de mi tabla NOTICIAS.. porfa ayuda..
__________________
Developer Web

Téc. Informática y Sistemas Luis Angel Sebasiani Terrones
Diseño, Desarrollo Web y Multimedia - Publicidad Online

http://www.publinet92.com