Print Page | Close Window

any idea of ZBit chat ??

Printed From: Web Wiz Forums
Category: General Discussion
Forum Name: Classic ASP Discussion
Forum Description: Discussion on Active Server Pages (Classic ASP).
URL: https://forums.webwiz.net/forum_posts.asp?TID=7611
Printed Date: 01 April 2026 at 1:00am
Software Version: Web Wiz Forums 12.08 - https://www.webwizforums.com


Topic: any idea of ZBit chat ??
Posted By: the boss
Subject: any idea of ZBit chat ??
Date Posted: 25 November 2003 at 7:57pm

im trying to get the ZBIT Chat software works with the forum database for authenication..the default application comes with a Access database and what im trying to use is the SQL database of WWG Forums.. i 've as well disable password encryption on the WWG Forums database..

the default code of zbit chat t authenicate users against the Access database is:
-------------------------------------------

'Verifies user Id against the password
'you most likely are going to rewrite this function to accomodate your database
'the code here is just a sample
Function UserAuthenticate(sUserName,sPassword)
 Dim oRs
 
 Set oRs=Server.CreateObject("ADODB.Recordset")
 oRs.Open "select user_name from users where user_name='" & EscQ(sUserName) & "' AND password='" & EscQ(sPassword) & "'" ,_
  "Provider=SQLOLEDB; Data Source=" & Server.MapPath("db1.mdb"),3,3
 UserAuthenticate=NOT (oRs.BOF AND oRs.EOF)
 Set oRs=Nothing
End Function

------------------------------------------
I reworte the code to make it work with WWG forums SQL database..


'Verifies user Id against the password
'you most likely are going to rewrite this function to accomodate your database
'the code here is just a sample
Function UserAuthenticate(sUserName,sPassword)
 Dim oRs
 
 Set oRs=Server.CreateObject("ADODB.Recordset")
 oRs.Open "select username, password from dbo.tblAuthor where username='" & EscQ(sUserName) & "' AND password='" & EscQ(sPassword) & "'" ,_
  "Provider=Microsoft.Jet.OLEDB.4.0; Server=SERVER2003;Database=dbjg;UID=farooq;PWD=123456",0,1,1
 UserAuthenticate=NOT (oRs.BOF AND oRs.EOF)
 Set oRs=Nothing
End Function
---------------------------------------------------------

and i get a Error 500 - internet server error when the username and password is enterned and the login button is hit in the ZBit chat application..

i tried to set up a new SQL database with the reqired tables of username and password and then try the chat application to work with SQL databse and would still get error 500.. any ideaz???



-------------
http://www.web2messenger.com/theboss">



Replies:
Posted By: MorningZ
Date Posted: 25 November 2003 at 9:51pm

let Internet Explorer tell you exactly what's wrong....

in IE, click on "Tools", then "Options", then the "Advanced" tab, scroll until you see the checkbox, "Show Friendly errors"... uncheck that

now you'll see what the error is...

i can tell you one error by quickly looking at your code is that you don't know the difference between a connection string and a connection object



-------------
Contribute to the working anarchy we fondly call the Internet


Posted By: the boss
Date Posted: 25 November 2003 at 11:49pm

Microsoft JET Database Engine error '80004005'

Could not find installable ISAM.

/chat/english/chatapi.asp, line 62

and line 62 is:
 oRs.Open "select username, password from dbo.tblAuthor where username='" & EscQ(sUserName) & "' AND password='" & EscQ(sPassword) & "'" ,_

i get some idea now.. this thing works ok with Access but probably the connection object is different for SQL..what could it be???



-------------
http://www.web2messenger.com/theboss">


Posted By: God_Struth
Date Posted: 26 November 2003 at 9:36am
http://www.visual-basic-data-mining.net/Forum/showpost.aspx? PostID=791

-------------
"I'm only trying to help......"


Posted By: the boss
Date Posted: 26 November 2003 at 9:37pm
Error: Unknown forum
  The forum you requested does not exist.


-------------
http://www.web2messenger.com/theboss">



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.08 - https://www.webwizforums.com
Copyright ©2001-2026 Web Wiz Ltd. - https://www.webwiz.net