Запрос Angular JS в PHP PDO MySqlPhp

Кемеровские программисты php общаются здесь
Anonymous
Запрос Angular JS в PHP PDO MySql

Сообщение Anonymous »


I'm trying to display a database into angular js with the addition of php pdo. Why doesn't the code work so it won't appear on the web?

Mysql connected

HTML read

AngularJS with PHP PDO and MySQL {{ user.name }} - {{ user.email }} var app = angular.module('myApp', []); app.controller('MainController', function($scope, $http) { $http.get('api/getUserData.php').then(function(response) { $scope.users = response.data; }); }); Database connection

I'm still looking for an answer to solve this problem, does anyone know


Источник: https://stackoverflow.com/questions/781 ... -pdo-mysql

Вернуться в «Php»