Home  >  Article  >  Backend Development  >  这个查询应该如何做?

这个查询应该如何做?

WBOY
WBOYOriginal
2016-06-13 10:34:11804browse

这个查询应该怎么做???
有很多的内容,每个内容都属于一个唯一的父类,实现是是按照每个父类所含内容的多少进行排序父类。

用的是smarty

这个是现在的代码

PHP code
<!--Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-->$db->Query("tag_list","select * from `tag` order by `id` desc limit 20");    while($tag_arr = $db->GetArray("tag_list")){        $tag_list[] = $tag_arr;    }    $qf->assign('tag_list',$tag_list);


这个只是取出了父类的名字,并没有按照每个父类所含内容的多少进行排序,应该怎么写??

------解决方案--------------------
提示不是说SQL错了。是 fopen() 里面的路径错了。
Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Previous article:php中的var宣言的作用Next article:无解有关问题