Programming Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
 
User Name:
Password:
Remember me
Go Back   ASP Free ForumsOtherProgramming Help

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread ASP Free Forums Sponsor:
  #1  
Old September 25th, 2005, 10:21 AM
roberemok roberemok is offline
Contributing User
ASP Free Newbie (0 - 499 posts)
 
Join Date: May 2005
Location: Toronto
Posts: 143 roberemok User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 Day 16 h 3 m 32 sec
Reputation Power: 4
Send a message via AIM to roberemok Send a message via MSN to roberemok
SQL - Where Help

I have a tblUsers table. This table is used for username, password and also has their e-mail in it.

The table is accessed in order for them to login. I set a session variable at that point. Session("USERNAME") = rs("Username")

I'm trying to write a SQL statement to get their email address based on the username used in the login.

SELECT email FROM tblUsers where ????

Once I get the e-mail I want to add into CDONTS for an e-mail. The e-mail works fine but I want to add this into the FROM Section.

I hope this clear. Any help would be greatly appreciayted.

Reply With Quote
  #2  
Old September 25th, 2005, 01:27 PM
Calldean's Avatar
Calldean Calldean is offline
Semi-Retired Geek
ASP Free Novice (500 - 999 posts)
 
Join Date: Mar 2005
Location: Liverpool
Posts: 681 Calldean User rank is Corporal (100 - 500 Reputation Level)Calldean User rank is Corporal (100 - 500 Reputation Level)Calldean User rank is Corporal (100 - 500 Reputation Level)Calldean User rank is Corporal (100 - 500 Reputation Level) 
Time spent in forums: 3 Days 20 h 46 m
Reputation Power: 6
ASP Code:
Original - ASP Code
  1. WHERE UserName = '" & Session("USERNAME") & "'"
  2.  


Something like that.

Cheers,

Dean
Comments on this post
roberemok agrees: A little late. Sorry. Thanks

Reply With Quote
Reply

Viewing: ASP Free ForumsOtherProgramming Help > SQL - Where Help


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 4 hosted by Hostway