daily pastebin goal
1%
SHARE
TWEET

Untitled

a guest Dec 7th, 2017 43 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <table infinite-scroll="loadMore()" ng-controller="LastBookingsCtrl">
  2.    
  3. $scope.loadMore = function() {
  4. $http.get("last.php?start=" + $scope.currentLoadIndex)
  5.     .then(function (res) {
  6.         if (res.data.length > 0) {
  7.             var count = 0;
  8.                 for (var i = 0; i < res.data.length; i++) {
  9.                     $scope.lastBookings.push(res.data[i]);
  10.                     count++;
  11.                 }
  12.             $scope.currentLoadIndex += count;
  13.         }
  14.     });
  15. };
  16.    
  17. $start = $_GET['start'];
  18. $query = "SELECT * FROM `performs` ORDER BY id DESC LIMIT ".$start.", 20";
RAW Paste Data
Top