The interaction between android and PHP backend is successful, but the backend says no ??

Source: Internet
Author: User
As the question! If the user name already exists, the user will report that the user has been registered, but the background says that the user has not received the data, as shown in the following figure!
If the user name already exists, the user will report that the user has been registered, but the background says that the user has not received the data.

Reply content:

As the question!
If the user name already exists, the user will report that the user has been registered, but the background says that the user has not received the data.

Check the nginx log to see if the request has been received. Or install a Fiddle to debug the interface.

First, use the http tool to access the interface according to the interface parameters. if the problem cannot be found, you have to set debugging in the PHP method.

Directly create a new table, and then write an insert statement at the beginning. If all the post or get parameters are saved, you will know that the interface is gone, another important thing is to check whether the transmitted value is correct. You can also write insert statements in multiple places to see where the segments are, so that you can know why the problem occurs.

Test the interface separately (determine whether the user name has been used) to see if it has been successful

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.