"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("username") %>
<td class="tdblock" align="left">
<font color="#FFFFFF" style="font-size:
9pt"><%=var_user1%></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="Application"
id="rstActiveUsers" progid="ADODB.Recordset">
</object>
<script language="VBScript" runat="Server">
Sub Application_OnStart()
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").Value = _
Session.SessionID
rstActiveUsers.Fields("ip").Value = _
Request.ServerVariables("REMOTE_HOST")
rstActiveUsers.Fields("browser").Value = _
Request.ServerVariables("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.SessionID, _
0, adSearchForward, adBookmarkFirst
If Not rstActiveUsers.EOF Then
rstActiveUsers.Delete adAffectCurrent
End If
End Sub
Sub Application_OnEnd()
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("username") 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.