My jQuery part isn't working, can sombody please explain why I do not get the desired output ? index.php
while ($row = mysql_fetch_array($res))
array_push($result, array('text' =>$row[1]));
echo json_encode(array("result"=> $result));
getting.js
$.getJson("view_note.php", function(data){
$("ul").empty();
$.each(data.result,function(){
$("ul").append("<li>Text: "+this['text']+"</li><br />";
});
});
});

$resultfinally contain? On JS side: what doesdatacontain? On network level: what is transferred? Those are all things only you can find out, we do not have access to your system...