我正在尝试使用我的存储过程结果来运行我的PHPReport脚本,一切似乎都没问题,但我在我的视图中没有得到结果代码在下面
limit = 50;
//first time load animals
$img_type = 'animals';
url = "https://api.instagram.com/v1/tags/" + $img_type + "/media/recent?client_id={client_id}";
load_images();
function read_one_page(){
$.ajax({
type: "GET",
dataType: 'jsonp',
url: url,
async: false,
contentType: "application/json; charset=utf-8",
success: function (data) {
var count = data.data.length;
index = 0;
while(index < count && img_number<limit) {
img_number++;
element = data['data'][index];
//create link to the large image
var a = $('<a>').attr({href:element['images']['standard_resolution']['url']});
//insert thumbnail img into the link
a.append( $('<img>',{src:element['images']['thumbnail']['url'], alt:$img_type+" image"}) );
//add new images to div
$('#instafeed').append(a);
index++;
}
//add another two pages
if ( data.pagination.next_url && img_number<limit ) {
url = data.pagination.next_url;
read_one_page();//call itself
}
}//for success callback
}); //for $.ajax
}
function load_images(){
img_number = 0;
read_one_page();
}
我错过了什么,为什么我在我看来没有得到任何结果,页面只是空白没有任何错误。我排除故障,然后归结为'db2_execute($ stmt);'不运行失败。我该如何解决这个问题?