论坛显示添加办法:
打开forum_view.asp
找到: temp1=temp1&"<br> 注册:"&joekoe_cms.time_type(u_tim,4)&"</td></tr>"
改为:
temp1=temp1&"<br> 注册:"&joekoe_cms.time_type(u_tim,4)&""
并在下面添加:
Dim ConnOther,RsOther,SqlOther
Set ConnOther= Server.CreateObject("ADODB.Connection")
ConnOther.ConnectionString="rovider=Microsoft.Jet.OLEDB.4.0;Data Source="&Server.MapPath("数据库名字")
ConnOther.Open
SqlOther="select * from mypetdata where username='"&n_user&"'"
set RsOther=ConnOther.ExeCute(SqlOther)
if RsOther.bof and RsOther.eof then
temp1=temp1&vbcrlf&" <br>"
else
temp1=temp1&vbcrlf&" <br> 宠物:"&RsOther("mypet")&"</td></tr>"
RsOther.close
end if
set RsOther=nothing
ConnOther.close
set ConnOther=nothing