CodeCharge Studio
search Register Login  

Visual PHP Web Development

Visually Create Internationalized Web Applications, Web Reports, Calendars, and more.
CodeCharge.com

YesSoftware Forums -> Archive -> CodeChargeStudio.Discussion

 RE: Some help please

Print topic Send  topic

Author Message
RonB
Posted: 06/04/2002, 4:19 AM

"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.

Web Database

Join thousands of Web developers who build Web applications with minimal coding.
CodeCharge.com

Home   |    Search   |    Members   |    Register   |    Login


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