Web Wiz - Green Windows Web Hosting

  New Posts New Posts RSS Feed - Web Wiz Guide - Password Login
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Topic ClosedWeb Wiz Guide - Password Login

 Post Reply Post Reply
Author
MillerPC View Drop Down
Newbie
Newbie


Joined: 29 September 2003
Status: Offline
Points: 5
Direct Link To This Post Topic: Web Wiz Guide - Password Login
    Posted: 29 September 2003 at 2:23pm

I am getting the following :

On http://www.millerpc.co.uk/sms/free_sms_sender.asp

But i get :

Microsoft OLE DB Provider for ODBC Drivers error '80004005'

[Microsoft][ODBC Microsoft Access Driver]General error Unable to open registry key 'Temporary (volatile) Jet DSN for process 0x2494 Thread 0x2974 DBC 0x2c16fec Jet'.

/sms/check_user.asp, line 24

 

The file check_user.asp is :

<%
'Dimension variables
Dim adoCon   'Database Connection Variable
Dim strCon  'Holds the Database driver and the path and name of the database
Dim rsCheckUser   'Database Recordset Variable
Dim strAccessDB  'Holds the Access Database Name
Dim strSQL   'Database query sring
Dim strUserName  'Holds the user name

'Initalise the strUserName variable
strUserName = Request.Form("txtUserName")

'Check the database to see if user exsits and read in there password
'Initialise the strAccessDB variable with the name of the Access Database
strAccessDB = "users"

'Create a connection odject
Set adoCon = Server.CreateObject("ADODB.Connection")
   
'Database connection info and driver
strCon = "DRIVER={Microsoft Access Driver (*.mdb)};uid=;pwd=letmein; DBQ=E:\kunden\homepages\5\********\sms\users.mdb"

'Set an active connection to the Connection object
adoCon.Open strCon

'Create a recordset object
Set rsCheckUser = Server.CreateObject("ADODB.Recordset")

'Initalise the strSQL variable with an SQL statement to query the database
strSQL = "SELECT tblUsers.Password FROM tblUsers WHERE tblUsers.UserID ='" & strUserName & "'"

'Query the database
rsCheckUser.Open strSQL, strCon

'If the recordset finds a record for the username entered then read in the password for the user
If NOT rsCheckUser.EOF Then
 
 'Read in the password for the user from the database
 If (Request.Form("txtUserPass")) = rsCheckUser("Password") Then
  
  'If the password is correct then set the session variable to True
  Session("blnIsUserGood") = True
  
  'Close Objects before redirecting
  Set adoCon = Nothing
  Set strCon = Nothing
  Set rsCheckUser = Nothing
  
  'Redirect to the authorised user page and send the users name
  Response.Redirect"authorised_user_page.asp?name= " & strUserName
 End If
End If
  
'Close Objects
Set adoCon = Nothing
Set strCon = Nothing
Set rsCheckUser = Nothing
 
'If the script is still running then the user must not be authorised
Session("blnIsUserGood") = False

'Redirect to the unautorised user page
Response.Redirect"unauthorised_user_page.htm"
%>

(********) replaces the database location ( but i know that this is right ), and the file permisisions are right.

Any help please !!

Eddie Miller

www.millerpc.co.uk

Eddie@millerpc.co.uk

 

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

Joined: 08 April 2002
Location: United States
Status: Offline
Points: 4670
Direct Link To This Post Posted: 29 September 2003 at 2:27pm
What do the topic of this thread and your post have to do with each other? The error you got is described in the FAQ on this site.
Back to Top
MillerPC View Drop Down
Newbie
Newbie


Joined: 29 September 2003
Status: Offline
Points: 5
Direct Link To This Post Posted: 29 September 2003 at 2:37pm

Sorry   can you point me a bit !!

 

I have looked but really do need some HELP.

Many Thanks

Eddie

Back to Top
MillerPC View Drop Down
Newbie
Newbie


Joined: 29 September 2003
Status: Offline
Points: 5
Direct Link To This Post Posted: 29 September 2003 at 2:41pm

Ok.  Found the FAQ, but i have done everything right......  the data base connection is right ( i use it for other databases ) and the permissions are fine ( and i have double checked )

 

Any ideas ?

Eddie

Back to Top
WebWiz-Bruce View Drop Down
Admin Group
Admin Group
Avatar
Web Wiz Developer

Joined: 03 September 2001
Location: Bournemouth
Status: Offline
Points: 9844
Direct Link To This Post Posted: 29 September 2003 at 2:51pm
you have posted in the wrong forum, this forum is for the product Web Wiz Forums, what you want is the Web Wiz Guide Free Applications forum as you are on about the Database Login Application.

If you look in the right forum then you will find that this ahs been anwsered.
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.