• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 191
  • Last Modified:

show user name after they log in

How do I show user name after they log in
0
asamuel
Asked:
asamuel
  • 2
2 Solutions
 
cyberdevil67Commented:
Hi asamuel,
Dpends on what your using to log them in with, and where you do the compare. But how about pulling the information from the database as there name.

 <cfouput>#Username#</cfoutput> If your using the cflogin tags there is a tag that has the username that you could use to dispay to the browser.

Cheers!
0
 
asamuelAuthor Commented:
I did what you said and i am getting the first name in the database
do we missing something
0
 
cyberdevil67Commented:
what do you mean the first name, do you mean the users first name or the first name listed in the database.

If the first scenario then you jsut need to do what you need to do with the query, if the second scenario then you need to do a where clause on your query for the data to be pulled out for that record.
0
 
BugBoysWorldCommented:
make sure you are only returning the users' record and not all records

<cfquery datasource="dsn" name="q1">
select username from tbl_users where id = #userid#
</cfquery>

<cfoutput>#q1.username#</cfoutput>

0

Featured Post

New feature and membership benefit!

New feature! Upgrade and increase expert visibility of your issues with Priority Questions.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now