This topic is locked

How to put other field, other than LOGGED ON AS <username>

11/10/2007 9:04:31 AM
PHPRunner General questions
J
joesjnr author

<img src='https://asprunner.com/forums/file.php?topicimage=1&fieldname=question&id=6775&image=1&table=forumtopics' class='bbc_emoticon' alt=':ph34r:' />

Hello again forumers,
Every page after a user logon displays "LOGGED ON AS <username>".

I also want to display the department the user is from displayed there like "USER DEPARTMENT: <dept_name>"
Those 2 fields are from "users" table.
How do i include this?
Thanks in advance!
wr,

Joe

Alexey admin 11/12/2007

Joe,
add this code to After successful Login event:

$_SESSION["dept"]=$data["dept_name"];



where dept_name is your actual field name.
then use Insert code snippet command in Visual Editor to print this value:

echo $_SESSION["dept"];