i am a new php developers i was trying to create a simple system where i use php to extract database from mysql and use json in jquery mobile.

So here is the situation,
I've created a custom .php json (to extract data from mysql) on my website and i've successfully upload it onto my website eg: www.example.com/mysqljson.php

This is my code extracting mysql data `

```
header('content-type:application/json');

mysql_connect('localhost','root','') or die(mysql_error());

mysql_select_db('mydb');

$select = mysql_query('SELECT * FROM sample');

$rows=array();

while($row=mysql_fetch_array($select))
{
    $rows[] = array('id'=>$row['id'], 'id'=>$row['id'], 'username'=>$row['username'], 'mobileno'=>$row['mobileno'], 'gangsa'=>$row['gangsa'], 'total'=>$row['total']);

}

echo json_encode($rows);`

```

Which in returns gives me the following json @ <http://i.imgur.com/d4HIxAA.png?1>

Everything seems fine, but when i try to use the json url for extraction on jquery mobile it doesn't return any value.

i extract the json by using the following code;

```
function loadWheather(){
            var forecastURL = "http://example.com/mysqljson.php";

            $.ajax({
                url: forecastURL,
                jsonCallback: 'jsonCallback',
                contentType: "application/json",
                dataType: 'jsonp',
                success: function(json) {
                    console.log(json);
                    $("#current_temp").html(json.id);
                    $("#current_summ").html(json.id.username);      
                },
                error: function(e) {
                    console.log(e.message);
                }
            });
        }

```

The `json.id` @ #current\_temp and `json.id.username` @ #current\_sum dint return any result on my jquery mobile page.

I suspected i didn't extracted the json url correctly, but im not sure, could anyone help me identify the problem?

Thank you.