【发布时间】:2014-07-12 15:54:24
【问题描述】:
我想从phpbb_attachments 中随机选择 5 个图像,并从phpbb_users 中显示作者用户名。
phpbb_attachments: phpbb_topics_posted: phpbb_users:
attach_id topic_id user_id topic_id user_id username
1 10 21 10 21 Tom
2 5 53 5 53 Maria
3 15 11 15 11 John
$result = mysqli_query($con,"SELECT * FROM phpbb3_attachments WHERE mimetype = 'image/jpeg' ORDER BY RAND() LIMIT 5");
【问题讨论】:
-
你的问题是什么?
-
@GordonLinoff 显示图片附件和作者姓名