$sql="select * from type_article inner join article on type_article.id_typearticle = article.id_typearticle where article.id_typearticle=1 order by article.id_artcl desc";
$sql="select a.id_artcl, a.title_artcl, a.detail_artcl, a.id_typearticle, "
. " b.photo_typearticle from type_article a inner join article b on "
. " a.id_typearticle = b.id_typearticle where b.id_typearticle=1 order by "
. " b.id_artcl desc ";