title: How execute first jquery before my php classes
body: <p>Hi how can I execute first my jQuery scripts before my php code.<br>
  Here is my (javascript/jQuert) code:</p>
  
  <pre><code>function success_callback(p)
  {
      jQuery.post("http://geolocation.php", { latlong: LatLong, country: CountryName, city: LocaLityName},
  
      function(data){
         jQuery("#debug").text(data); 
         jQuery("div").show();    
         });
  
  }
  </code></pre>
  
  <p>PHP CLASS located in geolocation.php:</p>
  
  <pre><code>$data = array();
  $data['id'] = 267722;
  $data['latlong'] = $_POST['latlong'];
  $data['country'] = $_POST['country'];
  $data['city'] = $_POST['city']; 
  
  print_r($data);
  
  GetLatLong::GetLocation($_SESSION['cId'],$_POST['latlong'], $_POST['country'], $_POST['city']);
  
      if($flag == true){
      new Statistics($data, $db, $type);
  }
  </code></pre>
  
  <p>The <code>new Statistics($data, $db, $type);</code> code is always execute even I put a flag on it.</p>