How do I write php code to send JSON data from MySQL database to my AngularJS application

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


Need Your Help

Is there an option to use options in normal mode always in small caps?


I'm one of those few people who still uses caps lock regularly (Oh, the horror!! aaaah :O)

Scala: type mismatch; found : Unit required: Boolean

scala syntax

Hi I'm just trying out my first bits of scala and have hit this error which I don't understand. I've been trying to work it out and have exhausted my ideas. Help?

About UNIX Resources Network

Original, collect and organize Developers related documents, information and materials, contains jQuery, Html, CSS, MySQL, .NET, ASP.NET, SQL, objective-c, iPhone, Ruby on Rails, C, SQL Server, Ruby, Arrays, Regex, ASP.NET MVC, WPF, XML, Ajax, DataBase, and so on.