"Jeff" <ba*@gig-gamers.comwrote in message
news:45******** *************** @roadrunner.com ...
Hey gang.
I know this is probably an easy solution, but I don't remember how to do
it.
I have this code;
<%
If rstActiveUsers. RecordCount 0 Then
rstActiveUsers. MoveFirst
Do While Not rstActiveUsers. EOF
var_user1 = session("userna me") %>
<td class="tdblock" align="left">
<font color="#FFFFFF" style="font-size:
9pt"><%=var_use r1%></font></td>
</tr>
<% rstActiveUsers. MoveNext
Loop
End If
%>
it shows names like this;
name1
name2
name3
what i would like it to do, is show like this, with 3 across
name1 name2 name3
i think i remember using a mod or something to pull this off.
can someone help??
TIA
Jeff
ok, along with this, i thought i had this working in the global.asa, but it
isn't.
i have this in the asa file:..
<object runat="Server" scope="Applicat ion"
id="rstActiveUs ers" progid="ADODB.R ecordset">
</object>
<script language="VBScr ipt" runat="Server">
Sub Application_OnS tart()
Const adInteger = 3
Const adVarChar = 200
Const adDate = 7
rstActiveUsers. Fields.Append "id", adInteger
rstActiveUsers. Fields.Append "ip", adVarChar, 15
rstActiveUsers. Fields.Append "browser", adVarChar, 255
rstActiveUsers. Fields.Append "started", adDate
rstActiveUsers. Open
End Sub
Sub Session_OnStart ()
Session.Timeout = 20
Session("Start" ) = Now()
If Not rstActiveUsers. EOF Then rstActiveUsers. MoveLast
rstActiveUsers. AddNew
rstActiveUsers. Fields("id").Va lue = _
Session.Session ID
rstActiveUsers. Fields("ip").Va lue = _
Request.ServerV ariables("REMOT E_HOST")
rstActiveUsers. Fields("browser ").Value = _
Request.ServerV ariables("HTTP_ USER_AGENT")
rstActiveUsers. Fields("started ").Value = _
Now()
rstActiveUsers. Update
End Sub
Sub Session_OnEnd()
Const adSearchForward = 1
Const adBookmarkFirst = 1
Const adAffectCurrent = 1
rstActiveUsers. Find "id = " & Session.Session ID, _
0, adSearchForward , adBookmarkFirst
If Not rstActiveUsers. EOF Then
rstActiveUsers. Delete adAffectCurrent
End If
End Sub
Sub Application_OnE nd()
rstActiveUsers. Close
End Sub
</script>
now what i don't have, and am unable to figure out, is how to get the actual
session usernames.
i have the cookie values as session("userna me") but i am unsure of where to
put that. i have searched the usual tutorial places, but i don't see where
to get that info.
if anyone can help, i would appreciate it.
at least point me to where i can find this.