How to display content with the same property by one of the properties in the list

Source: Internet
Author: User
How to display content with the same property by one of the properties in the list
This is my list of topics, and one of the columns in my topic list is "status" to show "optional" or "not selectable". The current list shows all optional and non-selectable content. I want to add a feature, that is, by clicking on "Optional", the system automatically calls the database in the status of "optional" content, after clicking "Not selectable", the system can automatically call the database in the status of "not selectable" content.
 ##################### #课题列表 ##########################
Include "conn.php";
Include "header.php";
?>



<title>List of topics</title>


































  • Extract ($_request);$n = 0;$query =mysql_query ("SELECT count (*) as SM from Jiaoshi");mysql_query ("Set names ' GB2312 '");$row =mysql_fetch_array ($query);$count = $row [' SM '];if (empty ($offset)){$offset = 0;}Echo $offset;$query =mysql_query ("SELECT * from Jiaoshi the ORDER by ID ASC limit $offset, $list _num") or Die ("fail");mysql_query ("Set names ' GB2312 '");while ($row =mysql_fetch_array ($query)) {if (($n%2)! = ' 0 ') {echo " ";} else{echo " "; }if ($row [' Surplus ']==0) $ss = "not selectable"; else $ss = "optional"; Echo

    Project number

    Project name Teacher Guidance Title Optional number Selection of topics State Detailed information
    ". $row [' id ']." ". $row [' Subject ']."
    Related Article

    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.