我正在尝试显示登录用户正在关注的艺术家的状态更新列表。
到目前为止,我有这个:
#Get the list of artists that the user has liked
$q = "SELECT * FROM artist_likes WHERE user_id = '1' ";
$r = mysqli_query($dbc,$q);
while ($row = mysqli_fetch_array($r, MYSQLI_ASSOC)) {
#Now grab the statuses for each artist
$status_query = "SELECT * FROM status_updates WHERE artist_id = '".$row['artist_id']."' ";
$status_result = mysqli_query($dbc,$status_query)
}
但我不确定如何循环并显示返回的状态更新?
这不是我的强项,所以任何指针将不胜感激!