How to classify the content of a php article with the article

Updated on technology 2024-02-09
10 answers
  1. Anonymous users2024-02-05

    Write by yourself You can create different tables in the database.

  2. Anonymous users2024-02-04

    The basic idea: add a field to the comment table to store the ID of the article, and then when querying the database, the comment is taken by the ID of the article, so that the rest of the comments are associated with the article.

    The specific implementation involves the following points:

    Clause. 3. Display is sufficient.

    I hope to be able to give you a basic idea.

  3. Anonymous users2024-02-03

    When displaying an article, you need to go to the article table to get the information of that article through the primary key of the article, and then go to the comment table through the primary key of the article to get the comment information of the article. The next step is to display the information. God's.

    That's it. Simple, right.

  4. Anonymous users2024-02-02

    Just pass the cid in, get method.

    cid = isset($_get['cid']) get['cid'] :0;

    post method.

    cid = isset($_post['cid']) post['cid'] :0;

    cid = 4;

    dopage->getpage("select * from `#@__infolist` where (classid=$cid or

    parentstr like '%,$cid,%') and delstate='' and checkinfo=true order by

    orderid desc",13);

  5. Anonymous users2024-02-01

    $dopage->getpage("select * from `#@__infolist` where (classid=$cid or parentstr like '%,$cid,%') and delstate='' and checkinfo=true order by orderid desc",13);

    classid is already a condition, $cid is it passed from the page?

    The OR condition expands the range of options.

    You change or to and see.

  6. Anonymous users2024-01-31

    Yours, click on the title to enter the page, jump to the page that shows the article if($get['act']=="")

    nid=$_get["id"];

    teachedit=$db->query("select * from notice where id='$id'");

  7. Anonymous users2024-01-30

    My suggestion is to use the custom sql tag of phpcms to query the v9 type table.

    If you want to output categories and contents, or categories and columns, perform a multi-table query.

  8. Anonymous users2024-01-29

    I don't know what your table structure looks like, the header and content are different fields? If that's the case, you can customize the method, select the title field in the title() method, and echo it out, and select the content field in the content() method, and echo it out, isn't it!

  9. Anonymous users2024-01-28

    It is also possible to take the same tag tag to get articles with the same tag.

  10. Anonymous users2024-01-27

    Count it yourself! You can categorize the articles! You can see that the current user is viewing the articles in that category, and then display a few articles in the same category at random!

Related questions
6 answers2024-02-09

"Daddy's Flowers Have Fallen" is the first unit of the second volume of the seventh grade of the People's Education Edition. >>>More

11 answers2024-02-09

In fact, there are a lot of integrated installation packages that can put everything in place for you at once, but it is not recommended to do that. >>>More

6 answers2024-02-09

I have a good teacher who is very knowledgeable and kind to her students, her big bright eyes reveal simplicity and warmth, she is dedicated to the cause of education, and she cares for us all the time. She is the homeroom teacher of our class - Teacher Wang Yuanju. >>>More

7 answers2024-02-09

You can consult the tenderer or ** agency before the bid opening by raising objections, and ask it to give an explanation or clarification. >>>More

4 answers2024-02-09

The old man is very old, so old that I can't remember many things, but I still remember that the last time my ** was included was on March 2nd k I have thousands of times, I treat it like my first love View the original post "Hope。