我正在流中打印出我的用户喜欢..目前在打印出喜欢时,它会打印给定帖子中包含的 $_SESSION['id'] 。我将如何编辑此代码以回显 user2 之类的内容?
$likesqltwo = mysql_query("SELECT * FROM streamdata_feedback WHERE feedback_streamid ='$streamid' AND feedback_rating = 1");
$num3 = mysql_num_rows($likesqltwo);
while($row = mysql_fetch_array($likesqltwo)){
$likes=rawfeeds_user_core::getuser($row['feedback_userid']);
$user1_id=$_SESSION['id'];
$user2_id=$row['feedback_userid'];
if($user2_id==$_SESSION['id']){
echo"";
}else{
echo "And <a title = 'See who likes " .
$poster_name['fullusersname'] .
"s status' href='include/likes.php?streamitem_id=" .
$streamitem_data['streamitem_id']."' />" .
$num3 . " ";
}
}