Database postgresql <?php $host = "host=127.0.0.1"; $port = "port=5432"; $dbname = "dbname=Northwind"; $credentials = "user=postgres password=qwer1234"; $db = pg_connect( "$host $port $dbname $credentials" ); $sql =<<<EOF SELECT * from customers; EOF; $ret = pg_query($db, $sql); if(!$ret){ echo pg_last_error($db); exit; } $rows = array(); while($r = pg_fetch_assoc($ret)){ $rows[] = $r; } echo json_encode($rows); pg_close($db); PHP kodlarım yukarıdaki gibi. <html> <head> <title></title> <meta charset="utf-8" /> <link rel="stylesheet" href="http://maxcdn.bootstrapcdn.com/bootstrap/3.3.5/css/bootstrap.min.css"> <script src= "http://ajax.googleapis.com/ajax/libs/angularjs/1.3.14/angular.min.js"></script> </head> <body> <div ng-app="myApp" ng-controller="customersCtrl"> <div> <table class="table table-striped"> <thead> <tr> <th>CustomerID</th> <th>CompanyName</th> <th>ContactName</th> </tr> </thead> <tbody> <tr ng-repeat="x in names"> <td> {{x.CustomerID}} </td> <td> {{x.CompanyName}} </td> <td> {{x.ContactName}} </td> </tr> </tbody> </table> </div> </div> </html> <script> var app = angular.module('myApp', []); app.controller('customersCtrl', function($scope, $http) { $http.get("http://localhost:8080/connect.php") .success(function (response) {$scope.names = response.records;}); }); </script> AngularJs teki kodlarım yukarıdaki gibi. Databasedeki bilgileri JSON formatına dönüştürüp angularjs yle tablo şeklinde yazdırmak istiyorum ama olmadı. Nerede hata yapıyorum.