|
|
|
<%
if not session("petitemid")="" then
set rsp =Server.CreateObject("adodb.recordset")
rsp.open "SELECT UserPetTable.strength,UserPetTable.userpetName, PetTable.petName, UserPetTable.energylevel, PetTable.smallimg FROM PetTable INNER JOIN UserPetTable ON PetTable.petId = UserPetTable.petId WHERE (((UserPetTable.userPetId)=" & session("petitemid") & "));",conn
if not rsp.eof then
%>
" width="34" height="34"> |
| Pet Name |
<%=rsp("userpetname")%> |
| Pet Type |
<%=rsp("petname")%> |
| Pet Strength |
<%=rsp("strength")%> |
| No. of weapons |
<%set rspp = Server.CreateObject("ADODB.RECORDSET")
rspp.open "select count(weaponId) as countofweapon from weaponpettable where userpetid="&session("petselected"),conn
if rspp("countofweapon") = "" then
Response.Write("0")
else
Response.Write(rspp("countofweapon"))
end if
%>
|
| Energy Level |
<%=rsp("energylevel")%> |
|
<%end if
end if
%>
|
|