What should I do with this query?

Source: Internet
Author: User
What should I do with this query ??? There is a lot of content. each content belongs to a unique parent class, and the implementation is to sort the parent class according to the content of each parent class. This is the current code PHPcode $ db-& gt; Query (& quot; tag_list & quot;, & quot; select * from 'tag what should I do ???
There is a lot of content. each content belongs to a unique parent class, and the implementation is to sort the parent class according to the content of each parent class.

Smarty is used.

This is the current code
PHP code
  $ 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 );


This only extracts the name of the parent class and does not sort the content of each parent class. how should I write it ??

------ Solution --------------------
The prompt does not mean that the SQL is wrong. The path in fopen () is incorrect.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.