Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $GAnalytics = "SELECT GAnalyticsEST, GAnalyticsRUS FROM GAME_game WHERE id = ".$GID." ; ";
- $res= mysql_query($GAnalytics);
- $resul = array();
- while ($row = mysql_fetch_array($res))
- array_push($resul, array('GAnalyticsEST' => $row[0], 'GAnalyticsRUS' => $row[1] ));
- echo json_encode(array("resul"=>$resul));
- $(document).ready( function() {
- done();
- });
- function done() {
- setTimeout( function() {
- updates();
- done();
- }, 9000);
- }
- function updates() {
- $.getJSON( '../src/sms/game_statistics.inc', function(data) {
- $("ul").empty();
- $.each(data.resul, function(){
- $("ul").append("<li>GoogleEST: "+this['GAnalyticsEST']+"</li><li>GoogleRUS: "+this['GAnalyticsRUS']+"</li><br />");
- });
- });
- }
- <?php require_once('../../file_outside_www.php'); ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement