PHP display problems-php Tutorial

Source: Internet
Author: User
PHP display problems
    


Is this code incorrect?


Reply to discussion (solution)

Echo "you currently have". $ row [0]. "pending approval process! ";

No syntax error in the code
Please describe your problems

This is a small page to be processed. After debugging, data cannot be loaded, and no output result is returned for the number of $ row entries.

Echo "you currently have". $ row [0]. "pending approval process! ";

No, it's always loading data.

$ Result3 = mysql_query ($ query3) or die (mysql_error ());

$ Result3 = mysql_query ($ query3) or die (mysql_error ());
Er, I still cannot.

Please make it clear what problems you have encountered

$ Query3 = "select count (*) from (select * from bydms_dutyapp where dutyapp_approverid = '$ MY_SYSNUMBER' order by dutyapp_datetime desc) as bydms_tempa left join bydms_project on dutyapp_projectid = project_id) as bydms_tempb where dutyapp_result = 'under approval '";

Print $ query3 and put it in the database for execution to see if there are any results.

The SQL statement output is 1.

$ Query3 = "select count (*) from (select * from bydms_dutyapp where dutyapp_approverid = '$ MY_SYSNUMBER' order by dutyapp_datetime desc) as bydms_tempa left join bydms_project on dutyapp_projectid = project_id) as bydms_tempb where dutyapp_result = 'under approval '";

Print $ query3 and put it in the database for execution to see if there are any results.
The SQL statement output is 1.

This is a p layer on the home page. now this code cannot output the result, so the whole page is being loaded and cannot be displayed.

Get an echo in the front of auth. php and test it ......

Debugging is done by yourself. thank you!

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.