www.gusucode.com > 仿51.com的php源码 1.1 > home/MusicCommentView.php

    <?php
 header   ("Cache-Control:   no-cache,   must-revalidate");     
 header   ("Pragma:   no-cache");   
?>
<DIV style='width:100%;margin-bottom:20px;' align='top'>
<TABLE STYLE='width:100%;table-layout:fixed;'>
<TR>
<TD>
<?php
include("../include/dbclass.php");
include("../include/global.php");
$dbc=new DbConn();
$id=$_GET["id"];
$user=$_GET["user"];
$sql="select * from MusicCommentToMe where MusicComment_CommentObjId='$id' and MusicComment_UserName='$user' order by MusicComment_AddDate desc";
$result=$dbc->query($sql);
$num=$dbc->num_rows($result);
if ($num==null)
{
echo iconv('gbk', 'utf-8',暂无评论);
}
else

while ($row=@mysql_fetch_array($result)) {

{?>

<DIV style='height:22px;'>
<?php echo iconv('gbk', 'utf-8',●);?> <a href='/home.php?user=<?php echo $row["MusicComment_Name"]; ?>' class='lync' target='_blank'>
<?php echo $row["MusicComment_Name"]; ?></a>&nbsp;&nbsp;<?php echo iconv('gbk', 'utf-8',时间:);?>:&nbsp;&nbsp;<?php echo $row["MusicComment_AddDate"]; ?>&nbsp;&nbsp;<a href="/jb.php?user=<?php echo $row["MusicComment_Name"]; ?>&type=comment" target="_blank" style="color:#ccc;"><?php echo iconv('gbk', 'utf-8',举报该评论);?></a>
</DIV>
<DIV style="width:98%;WORD-BREAK:BREAK-ALL;WORD-wrap:break-word;margin-left:10px;">
<?php echo iconv('gbk', 'utf-8',ubb($row["MusicComment_Memo"])); ?></DIV>
<DIV>

<?php
}
}
?>
</DIV>
</TD>
</TR>
</TABLE>
</DIV>