为什么结果我得到了所有朋友而不是只有 10 个朋友
我正在使用此查询
$FQLQuery = 'SELECT uid, sex, pic_square FROM user WHERE uid in ('.implode(", ", $man).')';
来获取用户选择的 10 个朋友的 uid、pic_squre 和性别 他们的用户 ID 存储在 $man[ ] 数组中,
但是当我看到结果时,它选择的是用户的所有朋友而不是朋友 仅由用户选择 怎么了?
这就是我为所有朋友得到的
[12] => Array
(
[uid] => 100003033556875
[sex] => female
[pic_square] => http://profile.ak.fbcdn.net/hprofile-ak-snc4/274747_1000
03033556875_306033850_q.jpg
)
i am using this query
$FQLQuery = 'SELECT uid, sex, pic_square FROM user WHERE uid in ('.implode(", ", $man).')';
to get uid, pic_squre, and sex of 10friends which are selected by user
and their user id is stored in $man[ ] an array
but when i see the results it is selecting all the friends of a user not the friends
only selected by a user
whats wrong?
This is what i am getting for all friends
[12] => Array
(
[uid] => 100003033556875
[sex] => female
[pic_square] => http://profile.ak.fbcdn.net/hprofile-ak-snc4/274747_1000
03033556875_306033850_q.jpg
)
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您应该添加 LIMIT 子句
You should add LIMIT clause