title: how to get data from number of functions written in same file for different mysql queries?
body: <p>Angularjs code:</p>
  
  <pre><code>var app = angular.module("myApp", []);
  app.controller("myCtrl",$scope,$http){
  $scope.displayData = function(){
  $http.get( "Fetch_Data.php"
    ).then(function (response) {
     $scope.names = response.data; 
     },function (error){ 
     });
    }  
   }
  </code></pre>
  
  <p>Fetch_Data.php file:</p>
  
  <pre><code>&lt;?php
  // code for connection to database
  function fun_1()
  {
    //  mysql select query;
      return $output;
  }
  function fun_2()
  {
      //  mysql select query;
     return $output;
  }
  $var_1 = fun_1();
  $var_2 = fun_2();
  ?&gt;
  </code></pre>
  
  <p>My question is <strong>how to get data from number of functions written in same file for different mysql queries?</strong>
  How can i come to know that coming data in $http.get(), is from fun_1() or fun_2()?</p>