Franck
|
| Posted: 08/09/2002, 3:40 AM |
|
I have this code , it matches but it don't display the logged person email
why? do I miss something?
I f there is no If(CLoginUser .....) I got parse error invalid sql
I want the mail only to be displayed if the member logs? how to do it in CCS
any support
<?php
function Header_Link2_BeforeShow() { //Header_Link2_BeforeShow @6-0E831E7F
global $Header;
$c = new clsDBConnection1;
if (CCLoginUser($Login->login->Value, $Login->password->Value))
{
$Header->Link2->SetValue(CCDLookUp("email", "members", "member_id=".CCGetUserID($c), $c));
}
//Custom Code @7-2A29BDB7
// -------------------------
// Write your own code here.
// -------------------------
//End Custom Code
} //Close Header_Link2_BeforeShow @6-FCB6E20C
?>
|
|
|
 |
Nicole
|
| Posted: 08/09/2002, 5:52 AM |
|
Frank,
please try this code:
global $Header;
$c = new clsDBConnection1;
if (CCgetUserID())
{
$Header->Link2->SetValue(CCDLookUp("email", "members", "member_id=".CCGetUserID(), $c));
}
|
|
|
 |
|