There was a problem with the final execution.
phpcn_u17776
phpcn_u17776 2017-08-31 13:53:41
0
2
1244

My previous verification was OK. When I finished the execution, I finished the if statement and connected to the database. When I refreshed the page again, "page error" appeared. I verified the code repeatedly. I also tried using other databases. There is no problem in connecting by creating a function and then connecting it to read data. May I ask how is this going? How to solve it?

phpcn_u17776
phpcn_u17776

reply all(2)
phpcn_u17776

屏幕快照 2017-08-31 下午10.39.23.png

This is the execution code

  • reply Then debug with a breakpoint here, debug step by step, and then check if there is a return value in netword. This should be where there is an error.
    ringa_lee author 2017-09-01 15:34:14
  • reply How to debug this execution code? I just learned php and don't understand it very well. Can you give an example?
    phpcn_u17776 author 2017-09-01 16:23:30
  • reply I think Teacher Zhu uses alert() to display the value. is that so? How should it be written?
    phpcn_u17776 author 2017-09-01 16:25:34
  • reply Yes
    ringa_lee author 2017-09-02 08:58:18
ringa_lee

Enable debug and see what the error message is and the number of lines where the error is reported.

  • reply This problem has been solved, but after entering the login interface, why does nothing happen after entering the account number and password and clicking login?
    phpcn_u17776 author 2017-08-31 15:20:50
  • reply Reply to ringa_lee: I can give you a screenshot of the code
    phpcn_u17776 author 2017-09-01 10:26:05
  • reply Reply to phpcn_u17776: Hello, how did you solve this problem jquery.min.js:5 POST http://www.mdoor.com/index/user/checklogin.html 500 (Internal Server Error)
    YY author 2017-10-16 15:40:24
  • reply I just started learning PHP and I don’t quite understand it. I looked at the return value of network and it is checklogin.html. But I don’t have the checklogin.html file.
    phpcn_u17776 author 2017-08-31 16:15:48
  • reply Is it 500, internal server error? How should this be solved?
    phpcn_u17776 author 2017-08-31 16:29:42
  • reply Still not sure what's going on, I put the return statement under the verification, and a true will appear on the login interface, and the network is 200, no problem. But if you add the last execution statement, there will be a problem, it will become 500. It means that the checlogin method can be found earlier. But when executing the statement, I compared it with the teacher's code many times and found no problem. How is this going. And if I entered the correct account and password earlier, it would return true.
    phpcn_u17776 author 2017-09-01 05:02:46
  • reply Okay, are you on QQ? which one is you?
    phpcn_u17776 author 2017-09-01 08:54:24
  • reply I just joined the 7 and 5 group
    phpcn_u17776 author 2017-09-01 08:54:56
  • reply I can give you a screenshot of the code
    phpcn_u17776 author 2017-09-01 10:26:42
  • reply /Users/yuanjiezhang/Desktop/Screenshot 2017-08-31 10.39.23.png
    phpcn_u17776 author 2017-09-01 13:41:02
  • reply The above answer is a screenshot of my execution code
    phpcn_u17776 author 2017-09-01 13:44:26
  • reply You should use AJAX to log in. Check the network to see what is returned, and then go to the program to debug with breakpoints.
    ringa_lee author 2017-08-31 15:41:43
  • reply Yes, the error is reported because there is no checklogin method. Then you can use the checklogin method to verify the login.
    ringa_lee author 2017-08-31 18:12:20
  • reply There must be something wrong with the executed program. Post the code and take a look.
    ringa_lee author 2017-09-01 08:53:22
  • reply Just post the screenshot under the reply, you can see it
    ringa_lee author 2017-09-01 13:38:15
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!