-1
I’m starting to learn Angular 2, and I have to do a CRUD of a system over series, and I need to store data in a database, currently I know how to use Mysql using Xampp.
I need to make the request using Ajax. Below, follows the function that you want to call the PHP file:
Below, the file 'register.php':
I’m testing the function of the first image using ng serve
to enable the HTTP server for Angular, but the PHP file does not work, I believe it is due to the lack of a Mysql server similar to the one that Xampp activates, because I know that Angular is Client-side, and PHP server-side.
1- How can I connect to the bank?
2- How can I "call" the server-side?
Thank you in advance.
Usually the server side is called via http requests.
– Eduardo Vargas
Yes, but I was not able to do that, I figured out how to make it work, compiling angular code 2 and running inside the xampp, soon I will post as answer.
– Nathan Schroeder