在Json解析和在数据库中保存值方面存在问题


Having trouble in in Json parsing and save value in database

我得到json响应从我的服务器像这样。我想保存所有这些值在数据库通过mysql-PHP。请帮忙。

{"fields":[{"label":"Do you have a   website?","field_type":"website","required":false,"field_options":{},"cid":"c1"},{"label":"Security personnel #82?","field_type":"radio","required":true,"field_options":{"options":[{"label":"Yes","checked":false},{"label":"No","checked":false}],"include_other_option":true},"cid":"c10"},{"label":"Medical history","field_type":"file","required":true,"field_options":{},"cid":"c14"}]}

你必须首先编码json对象,如果你还没有,

mysqli_real_escape_string() -php

,然后插入到数据库。

更多信息请咨询google.com