Tabla de coment
Código:
Tabla postCREATE TABLE `coment` ( `id` int(11) NOT NULL auto_increment, `id_post_comment` varchar(11) NOT NULL, `comment_post` text NOT NULL, `id_user_comment` int(11) NOT NULL, `date_comment` date NOT NULL, `hour_coment` varchar(255) NOT NULL, PRIMARY KEY (`id`) ) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=363 ;
Código:
Esto es lo que llevo por el momento y funciona es estoCREATE TABLE `posts` ( `id` int(11) NOT NULL auto_increment, `titulo` varchar(255) NOT NULL, `post` text NOT NULL, `date_post` date NOT NULL, `hour_post` varchar(11) NOT NULL, `id_user_post` int(11) NOT NULL, `id_category_post` int(11) NOT NULL, PRIMARY KEY (`id`) ) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=80 ;
Código MySQL:
Pero lo que quiero es que tambien me lo ordene por la fecha y la hora de forma desendente del ultimo comentario insertado en el postVer original
Sinceramente soy newbie en php , cual quier sugerencia o critica, para optimizar y hacer que la consulta funcione se los agradeceria demasiado. Gracias!!