Php reads data from the database and sends it to ios through json

Source: Internet
Author: User
Php reads data from the database and sends it to ios through json. I read the data from the database in php, put the read data into a json string, and then send it to ios, however, I found that all the read data has changed to 1, and then I checked on the php end whether the value of one of the queries is a string that I know. if it is the same, php reads data from the database and sends the data to the ios end through json.
I read the database in php, put the read data into a json string, and then send it to ios, but I found that all the read data has become 1, then, on the php side, I will determine whether one of the queried values is a string I know. if the values are the same, assign a value to this string and then pass it back to the normal string to share it:
------ Solution --------------------
I don't understand. what types of data have all become 1?
------ Solution --------------------
Paste the code

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.