www.gusucode.com > 仿51.com的php源码 1.1 > home/ImageCommentView.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 ImageComment where ImageComment_CommentObjId='$id' and ImageComment_UserName='$user' order by ImageComment_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["ImageComment_Name"]; ?>' class='lync' target='_blank'> <?php echo $row["ImageComment_Name"]; ?></a> <?php echo iconv('gbk', 'utf-8',时间:);?> <?php echo $row["ImageComment_AddDate"]; ?> <a href="/jb.php?user=<?php echo $row["ImageComment_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["ImageComment_Memo"])); ?></DIV> <DIV> <?php } } ?> </DIV> </TD> </TR> </TABLE> </DIV>