Запрос Angular JS в PHP PDO MySql ⇐ Php
-
Anonymous
Запрос Angular JS в PHP PDO MySql
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
How to get data from MySQL with AngularJS - PHP {{data.username_post}} {{data.date_post}} {{data.image_post}} {{data.like_post}} {{data.comment_post}} var fetch = angular.module('myapp', []); fetch.controller('userCtrl', ['$scope', '$http', function ($scope, $http) { $http({ method: 'get', url: '../db/getdata.php' }).then(function successCallback(response) { $scope.datas = 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
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
How to get data from MySQL with AngularJS - PHP {{data.username_post}} {{data.date_post}} {{data.image_post}} {{data.like_post}} {{data.comment_post}} var fetch = angular.module('myapp', []); fetch.controller('userCtrl', ['$scope', '$http', function ($scope, $http) { $http({ method: 'get', url: '../db/getdata.php' }).then(function successCallback(response) { $scope.datas = 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
Мобильная версия