我尝试了这个,但我没有得到任何结果:
$Books= R::findAll( 'books' , ' WHERE accepted IS NULL ORDER BY update_time DESC LIMIT 100 ' );
我该怎么办?
修改
我的PHP:
$requests = array();
$Books = R::findAll( 'books' , ' ORDER BY update_time DESC LIMIT 100 ' );
foreach ($Books as &$value) {
$request = new stdClass();
$request->name= $value->name;
$request->accepted = $value->accepted;
$request->id = $value->id;
$requests[] = $request;
}
print_r(json_encode((object)$requests));
在Javascript中我做一个console.log(对象);我明白了:
Object
0: Object
name: "Mem û Zîn"
accepted: null
id: "1"
1: Object
...
使用“WHERE”语句和R :: findAll我什么都没得到。
修改 好的,对于@gbelisario,这有效:
$Books = R::getAll( 'select * from books WHERE accepted IS NULL ORDER BY update_time DESC LIMIT 100 ' );
foreach ($Books as &$value) {
$requests[] = $value;
}
print_r(json_encode((object)$requests));
答案 0 :(得分:1)
你试过这个吗?
$(document).ready(function(){
$('html, body').animate({
scrollTop: $(".ganesh").offset().top,
}, 5000).animate({
scrollLeft: $(".bird1").offset().left,
}, 5000).animate({
scrollLeft: $(".saar").offset().left,
}, 5000).animate({
scrollLeft: $(".anna").offset().left,
}, 5000).animate({
scrollLeft: $(".friends1").offset().left,
}, 5000).animate({
scrollLeft: $(".quote").offset().left,
}, 5000);
});
答案 1 :(得分:0)
我正在使用redbean,并且可以使用
R::find ( 'bean', "battribute is NULL" );
太