Home  >  Article  >  Backend Development  >  php数据库 读出JSON 及写入数据库

php数据库 读出JSON 及写入数据库

WBOY
WBOYOriginal
2016-06-23 14:26:22876browse

有人写过 php数据库 导出JSON 及导入数据库 现成的东西吗 能否共享下  我刚学PHP写的非常乱
就是 从表中读出来 

test 对应表 其它对应字段 

输出json  {"test":[{"f1":"abc","f2":123,"Bzx":false}]}

json写入 test 对应表 其它对应字段


回复讨论(解决方案)

那你写入进去就是了,有什么疑问?

看不明白。请阐述的再详细点,最好捎上代码及数据库表列结构

表没固定 字段 没固定 所以我想写一个过程 直接调用

看不明白。请阐述的再详细点,最好捎上代码及数据库表列结构

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn