Ver Mensaje Individual
  #3 (permalink)  
Antiguo 10/09/2009, 00:31
samu22
 
Fecha de Ingreso: abril-2008
Mensajes: 453
Antigüedad: 16 años
Puntos: 16
Respuesta: Sistema de tags relacionado

yo utilizo una tabla aparte para los tags con un campo id_post, para no llenar de procesos una simple busqueda de referencias en una misma tabla

Cita:
CREATE TABLE IF NOT EXISTS `tags` (
`id` int(11) NOT NULL DEFAULT '0',
`tag` text NOT NULL
) ENGINE=MyISAM DEFAULT CHARSET=latin1;


CREATE TABLE IF NOT EXISTS `tags_post` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`tag_id` int(11) NOT NULL DEFAULT '0',
`post_id` int(11) NOT NULL DEFAULT '0',
PRIMARY KEY (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=1979 ;
igualmente estaba pensando en hacer una comparacion de articulos para verificar las palabras en comun y darle un ranking al articulo relacionado