Web Wiz - Green Windows Web Hosting

  New Posts New Posts RSS Feed - any idea of ZBit chat ??
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

any idea of ZBit chat ??

 Post Reply Post Reply
Author
the boss View Drop Down
Senior Member
Senior Member
Avatar

Joined: 19 January 2003
Location: Saudi Arabia
Status: Offline
Points: 1727
Post Options Post Options   Thanks (0) Thanks(0)   Quote the boss Quote  Post ReplyReply Direct Link To This Post Topic: any idea of ZBit chat ??
    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???


Back to Top
MorningZ View Drop Down
Senior Member
Senior Member
Avatar

Joined: 06 May 2002
Location: United States
Status: Offline
Points: 1793
Post Options Post Options   Thanks (0) Thanks(0)   Quote MorningZ Quote  Post ReplyReply Direct Link To This Post 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
Back to Top
the boss View Drop Down
Senior Member
Senior Member
Avatar

Joined: 19 January 2003
Location: Saudi Arabia
Status: Offline
Points: 1727
Post Options Post Options   Thanks (0) Thanks(0)   Quote the boss Quote  Post ReplyReply Direct Link To This Post 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???


Back to Top
God_Struth View Drop Down
Senior Member
Senior Member
Avatar

Joined: 07 August 2003
Location: United Kingdom
Status: Offline
Points: 218
Post Options Post Options   Thanks (0) Thanks(0)   Quote God_Struth Quote  Post ReplyReply Direct Link To This Post 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......"
Back to Top
the boss View Drop Down
Senior Member
Senior Member
Avatar

Joined: 19 January 2003
Location: Saudi Arabia
Status: Offline
Points: 1727
Post Options Post Options   Thanks (0) Thanks(0)   Quote the boss Quote  Post ReplyReply Direct Link To This Post Posted: 26 November 2003 at 9:37pm
Error: Unknown forum
  The forum you requested does not exist.

Back to Top
 Post Reply Post Reply

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.08
Copyright ©2001-2026 Web Wiz Ltd.


Become a Fan on Facebook Follow us on X Connect with us on LinkedIn Web Wiz Blogs
About Web Wiz | Contact Web Wiz | Terms & Conditions | Cookies | Privacy Notice

Web Wiz is the trading name of Web Wiz Ltd. Company registration No. 05977755. Registered in England and Wales.
Registered office: Web Wiz Ltd, Unit 18, The Glenmore Centre, Fancy Road, Poole, Dorset, BH12 4FB, UK.

Prices exclude VAT at 20% unless otherwise stated. VAT No. GB988999105 - $, € prices shown as a guideline only.

Copyright ©2001-2026 Web Wiz Ltd. All rights reserved.