View Full Version : Want to track User Title in the Sessions table
JoshFink
21 Jul 2001, 21:19
If someone could help me out with this, I would really appreciate it. I want to track user title in the sessions table. Now I know I need to add a column in the sessions table called usertitle, but how would I go about updating that table with the usertitle everytime the sessions table is updated?
Thanks Alot,
Josh
JoshFink
23 Jul 2001, 17:23
Anyone have a clue?
Thanks,
Josh
JamesUS
24 Jul 2001, 07:00
Why do you need to track user titles? If you use a query like this:
SELECT * FROM session LEFT JOIN user ON user.userid=session.sessionid WHERE userid=$userid;
That will give you access to all records from the user table (usertitle, username etc) and all records from the session table as well.
JoshFink
24 Jul 2001, 20:19
I want to try and lessen the amount of queries that I'm running. it's something that's going to run right by the Who's online, so I figure if it's already in the table then I will save a qeury and not slow things down.
Thanks,
Josh
Freddie Bingham
24 Jul 2001, 20:45
If you were to change this line
Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------
to
Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------
in index.php you would have access to the usertitle of each person logged in.
vBulletin® v3.6.12, Copyright ©2000-2012, Jelsoft Enterprises Ltd.