%
dim PhotoID
PhotoID=trim(request("PhotoID"))
if PhotoId="" then
call CloseConn()
response.Redirect("index.asp")
else
PhotoID=CLng(PhotoID)
end if
dim rsComment,sqlComment
sqlComment="select C.PhotoID,C.ClassID,C.UserType,C.UserName,C.Email,C.Oicq,C.Homepage,C.WriteTime,C.Score,C.Content,C.ReplyContent,C.ReplyName,C.ReplyTime,P.PhotoName,P.UpdateTime,P.PhotoID from PhotoComment C inner join Photo P on C.PhotoID=P.PhotoID where C.PhotoID=" & PhotoID & " order by C.CommentID desc"
Set rsComment= Server.CreateObject("ADODB.Recordset")
rsComment.open sqlComment,conn,1,1
%>
所有评论
<%
if rsComment.bof and rsComment.eof then
response.write " 没有任何评论"
else
%>