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

 CCDLookUp/CCGetDBValue troubles

Print topic Send  topic

Author Message
RonB
Posted: 06/04/2002, 7:09 AM

Hi I guess the people at Yes are busy getting to the final release so if any
of you php guru's could lend a hand?

Here's the problem:

"Alexey Alexapolsky" <alexa@codecharge.com> schreef in bericht
news:adfdkg$gp6$2@news.codecharge.com...
> Try to declare global $this
> and use $this->link_name->setvalue
>
> --
> Alex
> CodeCharge Developer

Hi Alex,

Tried your sugestion wich resulted in this code:


global $links3;
global $DBintranet;
global $this;

$my_result=CCDLookUp("sys_net","sys_opgelost","sys_opgelost<>1",$DBintranet)
;

if ($my_result != '')
{
$this->link_name->setvalue('<a href="./systeembeheer/netstatus.php"><img
src=./images/red.gif></a>');
}
else
{
$this->link_name->setvalue('<a href="./systeembeheer/netstatus.php"><img
src=./images/green1.gif></a>');
}

Still get the same error: Fatal error: Call to a member function on a
non-object in c:\program files\apache
group\apache\htdocs\intranet\Common.php on line 336

Line 336 is part of the GetDBValue function, more specific:
333 //CCGetDBValue @0-417763E3
334 function CCGetDBValue($sql, $db)
335 {
336 $db->query($sql);
337 if($db->next_record())
338 return $db->f(0);
339 else
340 return "";
341 }
342 //End CCGetDBValue

I'm new to this object orientated stuf so your help is greatly appreciated.

Ron


RonB
Posted: 06/04/2002, 4:18 PM

Nevermind code works now. Beats me why it didn't in beta5 but it does now so
who cares.

RonB

"RonB" <r.borkent@123chello.nl> schreef in bericht
news:adihn6$ci1$1@news.codecharge.com...
> Hi I guess the people at Yes are busy getting to the final release so if
any
> of you php guru's could lend a hand?
>
> Here's the problem:
>
> "Alexey Alexapolsky" <alexa@codecharge.com> schreef in bericht
>news:adfdkg$gp6$2@news.codecharge.com...
> > Try to declare global $this
> > and use $this->link_name->setvalue
> >
> > --
> > Alex
> > CodeCharge Developer
>
> Hi Alex,
>
> Tried your sugestion wich resulted in this code:
>
>
> global $links3;
> global $DBintranet;
> global $this;
>
>
$my_result=CCDLookUp("sys_net","sys_opgelost","sys_opgelost<>1",$DBintranet)
> ;
>
> if ($my_result != '')
> {
> $this->link_name->setvalue('<a href="./systeembeheer/netstatus.php"><img
> src=./images/red.gif></a>');
> }
> else
> {
> $this->link_name->setvalue('<a href="./systeembeheer/netstatus.php"><img
> src=./images/green1.gif></a>');
> }
>
> Still get the same error: Fatal error: Call to a member function on a
> non-object in c:\program files\apache
> group\apache\htdocs\intranet\Common.php on line 336
>
> Line 336 is part of the GetDBValue function, more specific:
> 333 //CCGetDBValue @0-417763E3
> 334 function CCGetDBValue($sql, $db)
> 335 {
> 336 $db->query($sql);
> 337 if($db->next_record())
> 338 return $db->f(0);
> 339 else
> 340 return "";
> 341 }
> 342 //End CCGetDBValue
>
> I'm new to this object orientated stuf so your help is greatly
appreciated.
>
> Ron
>
>
>


   


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.