Post Pacific  

Go Back   Post Pacific > Восстановленный архив > Темы без сохранившегося раздела
FAQ Community Calendar Today's Posts Search

Notices

 
 
Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
Old 18.05.2006, 20:50   #3
Smart
Архивный участник
 
Join Date: May 2006
Posts: 133
Default

<%
'Your MSSQL Server Username
ms_sql_server_host_addr = "127.0.0.1"
sql_server_username = ""
sql_server_password = ""

Dim MyConn, MyRS, DSNtemp, MyRS2, SQLstr, SQLstr2, MyRS3, SQLstr3, L2_Char_Quota, L2_Acct_Quota
Set MyConn = CreateObject("ADODB.Connection")
DSNtemp="Driver={SQL Server};Server=" & ms_sql_server_host_addr & ";Database=" & lin2world & ";Uid=" & sql_server_username & ";Pwd=" & sql_server_password & ";"
myconn.open DSNtemp
Set MyRS = CreateObject("ADODB.Recordset")
SQLstr = "SELECT char_name,xloc,yloc,race,zloc FROM user_data WHERE login > logout"
MyRS.open SQLstr, MyConn, 3, 3
UsersOnline = MyRS.RecordCount
response.write "<div style=position:absolute;top:0px;left:0px><img src=Aden-C4-full.jpg>"
CRec = 0
if UsersOnline > 0 then
do while not CRec = UsersOnline
XLoc = MyRS.Fields("xloc")
YLoc = MyRS.Fields("yloc")
ZLoc = MyRS.Fields("zloc")
Race = MyRS.Fields("race")
Name1 = MyRS.Fields("char_name")
xpix=(xloc + 132000)/410-4
ypix=(yloc + 264000)/410-8
CRec =(CRec + 1)
response.write "<div style=position:absolute;top:" & ypix & "px;left:" & xpix & "px>[img] & race & [/img]</div>"
loop
end if
response.write "<div style=position:absolute;top:5px;left:5px>[b]<font color='white' face='Verdana'>" & UsersOnline & " Users Online.</div></div>"
MyRS.Close
MyConn.Close
%>


help plz
Smart is offline  
 


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 20:04.