Post Pacific  

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

Notices

 
 
Thread Tools Search this Thread Display Modes
Old 18.05.2006, 20:28   #1
Smart
Архивный участник
 
Join Date: May 2006
Posts: 133
Default ASP MAP

plz i need your help way i have this error ?

Microsoft OLE DB Provider for ODBC Drivers (0x80040E37)
[Microsoft][ODBC SQL Server Driver][SQL Server]Invalid object name 'user_data'.
/map/mapshow.asp, line 13


i have this mode FidoWMap_ASP
Smart is offline  
Old 18.05.2006, 20:43   #2
FidoW
Архивный участник
 
Join Date: Sep 2005
Posts: 1,014
Default

ask to author... my version on PHP works perfectly but looks u are missing user_data table in lin2world db... or maybe ASP code are using wrong db...
FidoW is offline  
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  
Old 13.07.2006, 20:34   #4
Smart
Архивный участник
 
Join Date: May 2006
Posts: 133
Default

PLZ HELP !
Smart is offline  
Old 13.07.2006, 22:08   #5
Smart
Архивный участник
 
Join Date: May 2006
Posts: 133
Default

It's work yes im happy ! Close topic 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 16:12.