1

I'm trying to create a mobile application using AngularJS and Ionic Framework. However, I'm lost when trying to find a solution for backend database support. Is there a plugin or third-party API available to use to accomplish this?

1 Answer 1

4

Client side web applications do not connect directly to SQL database servers.

You need to pick a server side programming language and write a web service interface to your database.

Then access that interface using XMLHttpRequest (which Angular wraps with $http).

Sign up to request clarification or add additional context in comments.

4 Comments

Take a look at node.js or io.js to run JavaScript on the server. There is a package for mysql.
node.js is awesome! we run our company app with a backend node server that runs in IIS and connects to sql database.
I was thinking of creating an API in php but im not sure how the data would be sent back to a angularjs controller,. Im familiar with the $http.post('script.php' etc etc) setup to send data and execute however i cant seem to retrieve the information back for things like SELECT queries.
@DezmenCeoSykes — <?php echo $somedata; ?>

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.