return from db

This is a discussion on "return from db" within the Classic ASP section. This forum, and the thread "return from db are both part of the Program Your Website category.


 Subscribe in a reader

Go Back   Webforumz.com > Main Forums > Program Your Website > Classic ASP

Notices




Reply
 
LinkBack Thread Tools
  #1  
Old Jun 14th, 2005, 22:56
Highly Reputable Member
Join Date: May 2005
Location: U.K
Age: 21
Posts: 739
Thanks: 0
Thanked 0 Times in 0 Posts
return from db

hi

i have set up a page which uses a session ID. (username under the db) How do i write asp code to get the session and then select all the details in that record for use in hidden email fields.

cheers
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote

  #2  
Old Jun 15th, 2005, 12:35
Up'n'Coming Member
Join Date: Feb 2004
Location: Woodbridge, UK
Age: 27
Posts: 80
Thanks: 0
Thanked 0 Times in 0 Posts
Hi

Could you please explain a bit more. Where is the Session ID coming from?

How does the session ID relate to the persons details in the database? Are you saying that you are generating your own session ID's and have your own state management tool?

Or are you saying that a person logs in, and you store their username or some other PK in the session object, and from that you need to get their details from the database?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #3  
Old Jun 15th, 2005, 19:37
Highly Reputable Member
Join Date: May 2005
Location: U.K
Age: 21
Posts: 739
Thanks: 0
Thanked 0 Times in 0 Posts
hi

sorry i wasnt very clear was i

it twas the latter, i didnt know there was other session types in asp

sombody logs in - the session is the username in the db, but i have a link to another page. what i want is the session id to be checked with the records in the db so i can have them as values in hidden form fields.

hope that clarified it

thanks
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #4  
Old Jun 18th, 2005, 15:17
New Member
Join Date: Jun 2005
Location: USA
Posts: 9
Thanks: 0
Thanked 0 Times in 0 Posts
I haven’t got it clearly make it clear may be I can help!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #5  
Old Jun 18th, 2005, 20:44
Highly Reputable Member
Join Date: May 2005
Location: U.K
Age: 21
Posts: 739
Thanks: 0
Thanked 0 Times in 0 Posts
sorry - again!

ok - i have a login page. user logs in (details in db)and a session is created (username)

i have a link to another page

here i want to check the session name and then get the details for that username from the db such as full name, email address etc

i wana use these details in hidden fields (not important but i added it)

hope thts simple enogh
thanks
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #6  
Old Jun 19th, 2005, 18:29
Highly Reputable Member
Join Date: May 2005
Location: U.K
Age: 21
Posts: 739
Thanks: 0
Thanked 0 Times in 0 Posts
ive sorted it out now anyway
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Reply

Tags
return

Thread Tools

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
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Return column names in SQL using PHP nate2099 Databases 7 Dec 21st, 2007 14:57
The Return of Basic HTML??? ScottR Webforumz Cafe 0 Aug 8th, 2007 13:38
'Return to top' trouble? Kymberly PHP Forum 3 Aug 3rd, 2006 15:49
ASP ADO Connection to return XML from SQL Proc NickyJ Classic ASP 2 Aug 11th, 2005 11:39
Return to previously viewed screen Imara96 Flash & Multimedia Forum 5 Apr 23rd, 2005 22:18


All times are GMT. The time now is 04:24.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0 RC8
© 2003-2008 Webforumz.com : All Rights Reserved

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42