search

Home  >  Q&A  >  body text

There was a problem with the final execution.

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_u17776phpcn_u177762682 days ago1324

reply all(2)I'll reply

  • phpcn_u17776

    phpcn_u177762017-09-01 13:43:27

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

    This is the execution code

    reply
    0
  • ringa_lee

    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 · 2017-09-01 15:34:14
    phpcn_u17776

    How to debug this execution code? I just learned php and don't understand it very well. Can you give an example?

    phpcn_u17776 · 2017-09-01 16:23:30
    phpcn_u17776

    I think Teacher Zhu uses alert() to display the value. is that so? How should it be written?

    phpcn_u17776 · 2017-09-01 16:25:34
    ringa_lee

    Yes

    ringa_lee · 2017-09-02 08:58:18
  • ringa_lee

    ringa_lee2017-08-31 15:05:18

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

    reply
    0
  • phpcn_u17776

    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 · 2017-08-31 15:20:50
    phpcn_u17776

    Reply to ringa_lee: I can give you a screenshot of the code

    phpcn_u17776 · 2017-09-01 10:26:05
    YY

    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 · 2017-10-16 15:40:24
    phpcn_u17776

    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 · 2017-08-31 16:15:48
    phpcn_u17776

    Is it 500, internal server error? How should this be solved?

    phpcn_u17776 · 2017-08-31 16:29:42
    phpcn_u17776

    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 · 2017-09-01 05:02:46
    phpcn_u17776

    Okay, are you on QQ? which one is you?

    phpcn_u17776 · 2017-09-01 08:54:24
    phpcn_u17776

    I just joined the 7 and 5 group

    phpcn_u17776 · 2017-09-01 08:54:56
    phpcn_u17776

    I can give you a screenshot of the code

    phpcn_u17776 · 2017-09-01 10:26:42
    phpcn_u17776

    /Users/yuanjiezhang/Desktop/Screenshot 2017-08-31 10.39.23.png

    phpcn_u17776 · 2017-09-01 13:41:02
    phpcn_u17776

    The above answer is a screenshot of my execution code

    phpcn_u17776 · 2017-09-01 13:44:26
    ringa_lee

    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 · 2017-08-31 15:41:43
    ringa_lee

    Yes, the error is reported because there is no checklogin method. Then you can use the checklogin method to verify the login.

    ringa_lee · 2017-08-31 18:12:20
    ringa_lee

    There must be something wrong with the executed program. Post the code and take a look.

    ringa_lee · 2017-09-01 08:53:22
    ringa_lee

    Just post the screenshot under the reply, you can see it

    ringa_lee · 2017-09-01 13:38:15
  • Cancelreply