Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Web Programming > Adobe Web Programming > Dreamweaver (all versions)
|
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Dreamweaver (all versions) section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old May 9th, 2005, 02:03 PM
Registered User
 
Join Date: May 2005
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via ICQ to donthomaso
Default Connecting login to more database information

Hi,

I have a pretty basic problem I think.

I have created a login connected to an Access Database. Now I want
the second page to contain (booking) information collected from the same database for that same user (which is the primary key in the database).

So what I want is basically for the second page automatically to fill up with the information in the database connected to that user (to keep the user "logged in").

Thankful for any help/
Thomas

 
Old May 9th, 2005, 02:35 PM
Imar's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

Hi Thomas,

I am not sure I understand what you want or what your problem is. Can you describe your situation in more detail?

Also, how is this related to Dreamweaver?

Imar
---------------------------------------
Imar Spaanjaars
Everyone is unique, except for me.
While typing this post, I was listening to: Aerials by System Of A Down (Track 14 from the album: Toxicity ) What's This?
 
Old May 9th, 2005, 02:46 PM
Registered User
 
Join Date: May 2005
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via ICQ to donthomaso
Default

Hi,

I have created a login.asp page in Dreamweaver using "User Authentication>Log In User" which is connected to an Access database containing info like user id, password, name, address etc.

Now I want the second page (booking.asp) to contain the rest of the information in the database connected to that unique user that just logged in.

I have created a rs to retrieve that information. It only shows the first record in the database though. It does not change according to the user.

Thanks/
Thomas



 
Old May 9th, 2005, 03:28 PM
Imar's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

Right, I see.

When you created the Login page, DW added some code to store the user's name in a Session variable. Something like:

Session("MM_UserName") = Some Value

(don't know the exact variable name / code right now)

You can use that same session variable to limit your database queries for that user. Simply add a WHERE clause to your SQL statement that uses Session("MM_UserName") to limit the number of records retrieved from the database.

If you're new to Dreamweaver and ASP, may I recommend: Beginning Dreamweaver MX 2004. This book deals a lot with these kind of issues....

Imar
---------------------------------------
Imar Spaanjaars
Everyone is unique, except for me.
While typing this post, I was listening to: Farewell and Goodnight by The Smashing Pumpkins (Track 14 from the album: Mellon Collie and the Infinite Sadness - Twilight to Starlight) What's This?





Similar Threads
Thread Thread Starter Forum Replies Last Post
Connecting the Login Control to a Custom Database? WayTooAwesome ASP.NET 2.0 Basics 3 July 5th, 2006 03:31 PM
user login information Tee88 Classic ASP Basics 2 November 11th, 2005 10:21 AM
Pasting information to a second database Brendan Bartley Access 1 September 27th, 2005 09:45 AM
Urgent:Need help to INSERT information to database huat81 C# 4 January 14th, 2005 06:06 AM
Failed to load database information r_ganesh76 Crystal Reports 4 October 7th, 2004 03:04 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.