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