CodeCharge Studio
search Register Login  

Web Reporting

Visually create Web Reports in PHP, ASP, .NET, Java, Perl and ColdFusion.
CodeCharge.com

YesSoftware Forums -> Archive -> GotoCode Archive

 Header event custom code problem in CCS?

Print topic Send  topic

Author Message
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));
}

   


These are Community Forums for users to exchange information.
If you would like to obtain technical product help please visit http://support.yessoftware.com.

PHP Reports

Visually create Web Reports in PHP, ASP, .NET, Java, Perl and ColdFusion.
CodeCharge.com

Home   |    Search   |    Members   |    Register   |    Login


Powered by UltraApps Forum created with CodeCharge Studio
Copyright © 2003-2004 by UltraApps.com  and YesSoftware, Inc.