Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

SessionID Will it work

Status
Not open for further replies.

Copierbw

Technical User
Sep 25, 2002
112
IE
I have a session variable with what I want to extract data. Will this way of stating the query work to compare and extract only where the staff No is = to variable?

SELECT users.StaffNo, timedata.LogonTime, users.NSurname
FROM users, timedata
WHERE users.StaffNo = '$SESSION_UID'
ORDER BY timedata.LogonTime
 
Why not try it?
It should work if you have register_globals on and have registered the variable as a session variable. //Daniel
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top