Don't understand, database data query related issues

Source: Internet
Author: User
Do not understand, database data query problems.
Do not understand, database data query problems.
The database is designed as follows
L1 L2 L3 L4 L5 L6 Dqs Jqs zqs firstarea secondarea thirdarea AC
"1", "1", "2", "3", "4", "5", "6", "21", "0", "3", "4", "6", "0", "0", "0"
"2", "1", "2", "3", "4", "5", "7", "22", "0", "4", "5", "6", "0", "0", "1"
"3", "1", "2", "3", "4", "6", "7", "23", "0", "3", "4", "6", "0", "0", "1"
"4", "1", "2", "3", "5", "6", "7", "24", "0", "4", "5", "6", "0", "0", "1"
"5", "1", "2", "4", "5", "6", "7", "25", "0", "3", "4", "6", "0", "0", "1"
"6", "1", "3", "4", "5", "6", "7", "26", "0", "4", "4", "6", "0", "0", "1"
"7", "2", "3", "4", "5", "6", "7", "27", "0", "3", "4", "6", "0", "0", "0"
"8", "1", "2", "3", "4", "5", "8", "23", "0", "3", "4", "6", "0", "0", "2"
"9", "1", "2", "3", "4", "6", "8", "24", "0", "2", "3", "6", "0", "0", "2"
"10", "1", "2", "3", "5", "6", "8", "25", "0", "3", "4", "6", "0", "0", "2"
"11", "1", "2", "4", "5", "6", "8", "26", "0", "2", "3", "6", "0", "0", "2"
"12", "1", "3", "4", "5", "6", "8", "27", "0", "3", "3", "6", "0", "0", "1"

Want to choose according to the existing conditions to l1,l2,l3,l4,l5,l6 the number, designed a large table, with all the data information ...
For example, according to the customer using the form submitted by Dqs,jqs,zqs,firstarea,secondarea,thirdarea and other information value, pick out the number L1 to L6 what. How to design the query statement, as well as the input information of the form, how to pass to the query statement query?

PHP code
!--code highlighting produced by Actipro Codehighlig Hter (freeware) http://www. codehighlighter.com/--> my idea is to satisfy the!--? php//query_action.php$dqs=$_post[' Dqs ' at the same time; $jqs =$_post[' Jqs ']; $zqs =$_ post[' Zqs '; $firstarea =$_post[' Firstarea '); $secondarea =$_post[' Secondarea ']; $thirdarea =$_post[' Thirdarea ']; $db  =new mysqli (' localhost ', ' admin ', ' admin ', ' ssq '); mysql_connect ("localhost", "admin", "admin");//mysql_selectdb ($test); $sql = ' Select L1,l2,l3,l4,l5,l6 from HMK where  L1=1 and l2=2 and L3=3 and L4=4 and l5= 5 and l6=6 '; $DB--->query ($sql);      $row 1=mysql_fetch_array ($DBB, Mysqli_both); echo "Test many times, the first is the value did not pass in, and then even if passed in how to pass out, output to TXT also line"; > 
  • 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.