我在流中打印出我的用户喜欢...当前打印出喜欢的内容时,它会打印出包含给定帖子的$ _SESSION ['id']。如何编辑此代码以回显用户2?
$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 . " ";
}
}