This topic is locked
[SOLVED]

 display name in the header

7/26/2011 5:18:51 AM
PHPRunner General questions
L
legnus author

.

C
cgphp 7/26/2011

You can add custom php code to the include/header.php file:

global $conn;
$rs = CustomQuery("SELECT id FROM user_table_name WHERE user_name_field ='" . $_SESSION["UserID"] . "' LIMIT 1",$conn);

$record = db_fetch_array($rs);

echo $record['id'];
L
legnus author 7/26/2011

.