This topic is locked

How to change Logged on as .......

10/22/2010 9:20:16 AM
PHPRunner General questions
S
Sun author

I would like to change the logged in information below header, currently it will show Logged on as USER NAME to Logged on as FIRST_NAME LAST NAME or some other field from the table.

is it require to add extra filed in the registration table or it can be fetched from some other table based on username

Thanks

A
ann 10/25/2010

Hi,
you can change it in the List page: Before display event on the Eventstab:

$rs=CustomQuery("select FIRST_NAME, LAST_NAME from LoginTableName where UserName='".$_SESSION["UserID"]."'");

$data=db_fetch_array($rs);

$xt->assign("username",$data["FIRST_NAME"]." ".$data["LAST_NAME"]);