duanbushi1867 2015-08-02 07:13
浏览 63
已采纳

使用Php格式将数据馈送到数据库中,并将该数据用于JSON格式以在D3中使用

All I want to do is to get some data from JSON file for my D3.js in real time that too from user directly and get updated instantly.

There will be a php form from which data will be stored into database and the data from the database will be converted into JSON file which will be used by d3.js for some visualization technique.

Problem I am facing

I am not sure whether I can get the data from php form and convert it to JSON file instantly and can use for my Visualization model. I can convert the data into into database into JSON file but not sure how to do it one go.

  • 写回答

1条回答 默认 最新

  • dqdmvg7332 2015-08-02 07:21
    关注

    Why you want a json file if your data is saved on database? Just json_encode($array_of_your_data_from_database) will give you a json respond easily.

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论

报告相同问题?

悬赏问题

  • ¥15 求daily translation(DT)偏差订正方法的代码
  • ¥15 js调用html页面需要隐藏某个按钮
  • ¥15 ads仿真结果在圆图上是怎么读数的
  • ¥20 Cotex M3的调试和程序执行方式是什么样的?
  • ¥20 java项目连接sqlserver时报ssl相关错误
  • ¥15 一道python难题3
  • ¥15 牛顿斯科特系数表表示
  • ¥15 arduino 步进电机
  • ¥20 程序进入HardFault_Handler
  • ¥15 关于#python#的问题:自动化测试