CodeCharge Studio
search Register Login  

Web Reporting

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

YesSoftware Forums -> Archive -> CodeChargeStudio.Discussion

 howto use CCGetDBValue($sql, $db)

Print topic Send  topic

Author Message
Dave Rexel
Posted: 05/04/2002, 5:08 AM

howto use CCGetDBValue($sql, $db)
in the before show Custom code block

I keep getting errors

Fatal error: Call to a member function on a non-object in
c:\inetpub\wwwroot\NewProject3\eko_trans__list1_events.php on line 22

an example would good


Dave Rexel
Posted: 05/04/2002, 12:32 PM

SOLVED : Re: howto use CCGetDBValue($sql, $db)

I took a deep breath and scratched unwillingly in CC code

function eko_trans_out_mysum_BeforeShow() { //eko_trans_out_mysum_BeforeShow
@34-6C3823F0
//Custom Code @36-2A29BDB7
// -------------------------
// Write your own code here.
global $eko_trans_out;

//#### YOU HAVE TO FIND WHAT CCS NAMES YOUR CONNECTION
//####MAKE IT GLOBAL IN THIS PLACE
global $DBConnection1;

//####TEST CODE
$sql = "SELECT SUM(eko_amount) FROM eko_trans_out";

//####NOW USE THE COMMON FUNCTION
$myLookup = CCGetDBValue($sql, $DBConnection1);

$eko_trans_out->mysum->Value = $myLookup;
// -------------------------
//End Custom Code


"Dave Rexel" <therex_spamenot@hotmail.com> wrote in message
news:ab0j0o$spm$1@news.codecharge.com...
> howto use CCGetDBValue($sql, $db)
> in the before show Custom code block
>
> I keep getting errors
>
> Fatal error: Call to a member function on a non-object in
> c:\inetpub\wwwroot\NewProject3\eko_trans__list1_events.php on line 22
>
> an example would good
>
>
>


   


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.