dpnw86361 2013-08-22 19:12
浏览 35

如何编写PHP代码以将MySQL数据库中的JSON数据发送到我的AngularJS应用程序

I'm trying to wire up my angularjs application to get JSON data from a database (mySQL), using PHP as the server-side language (a language I taught myself this summer, and am most comfortable with).

Having looked at these links: (Angular JS: Full example of GET/POST/DELETE/PUT client for a REST/CRUD backend?) (How to access the services from RESTful API in my angularjs page?), I feel very confident in how the AngularJS code should look, but I don't know what the URL is doing in these $resource examples.

I've never implemented a RESTful API in any language, and I'm having a lot of trouble understanding what the code should be inside the tags. Explanations on the web are often too technical for my skill level. I've tried asking my professors, but I haven't found one who has implemented REST before.

I appreciate any time and any help, Andrew

  • 写回答

0条回答 默认 最新

    报告相同问题?

    悬赏问题

    • ¥40 复杂的限制性的商函数处理
    • ¥15 程序不包含适用于入口点的静态Main方法
    • ¥15 素材场景中光线烘焙后灯光失效
    • ¥15 请教一下各位,为什么我这个没有实现模拟点击
    • ¥15 执行 virtuoso 命令后,界面没有,cadence 启动不起来
    • ¥50 comfyui下连接animatediff节点生成视频质量非常差的原因
    • ¥20 有关区间dp的问题求解
    • ¥15 多电路系统共用电源的串扰问题
    • ¥15 slam rangenet++配置
    • ¥15 有没有研究水声通信方面的帮我改俩matlab代码