PHP connects to the database and click the button to query the data. if data is not clicked, the button turns red and no data remains red. -PHP source code

Source: Internet
Author: User
PHP connects to the database and click the button to query the data. if data is not clicked, the button turns red and no data remains red. Code

 "; Echo""; $ Mysql_server_name =" localhost "; // Database Server Name $ mysql_username =" root "; // database connection username $ mysql_password =" 123456 "; // database connection password $ mysql_database = "td_oa"; // database name // connect to the database $ conn = mysql_connect ($ mysql_server_name, $ mysql_username, $ mysql_password ); // solve the garbled mysql_query ("set names 'utf8'"); mysql_query ("set character set UTF8"); mysql_query ("SET CHARACTER_SET_RESULTS = utf8 '"); // SQL statement for extracting information from the table $ strsql = "select. field4 as 'vehicle no. ',. field8 as 'Task number',. field5 as 'date of loading ',. field6 as 'Vendor name',. field7 as 'purchase price' from 'CRM _ store' a left join 'CRM _ order' B on. field4 = B. field2 and. field8 = B. field16where (B. field8 = 0 or B. field8 is null) and DATE_ADD (. field5, INTERVAL 4 day)
 
  
 

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.