CodeCharge Studio
search Register Login  

Visual Web Reporting

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

YesSoftware Forums -> CodeCharge Studio -> PHP

 Include page broken

Print topic Send  topic

Author Message
snarf


Posts: 14
Posted: 08/05/2004, 11:35 AM

Hi gang. I've scoured the docs and forums with no luck.

I'm trying to include a page (as a block) that looks up several COUNT() values in the database. I keep getting a "annot redeclare" error. I renamed the form in the Include page just to make sure there was no problem with conflicting object names and then I started getting:

Fatal error: Call to a member function on a non-object in /opt/vnoc-portal/html/Common.php on line 362

Here are lines 359 to 365:

  
359: //CCGetDBValue @0-6DCF4DC4  
360: function CCGetDBValue($sql, &$db)  
361: {  
362:  $db->query($sql);  
363:  $dbvalue = $db->next_record() ? $db->f(0) : "";  
364:  return $dbvalue;    
365: }  


The include page works by itself, and the page calling the include works by itself. This error only occurs when the inlude is added to the parent page.

Any feedback appreciated.


View profile  Send private message
DonB
Posted: 08/05/2004, 6:03 PM

You have redefined a variable name due to the include file using the same
name for something. Or maybe you have included the "include" more than once
on a single page?

--
DonB

logging at http://www.gotodon.com/ccbth, and blogging at
http://ccbth.gotodon.net


"snarf" <snarf@forum.codecharge> wrote in message
news:541127deaa7e86@news.codecharge.com...
> Hi gang. I've scoured the docs and forums with no luck.
>
> I'm trying to include a page (as a block) that looks up several COUNT()
values
> in the database. I keep getting a "annot redeclare" error. I renamed the
form
> in the Include page just to make sure there was no problem with
conflicting
> object names and then I started getting:
>
> Fatal error: Call to a member function on a non-object in
> /opt/vnoc-portal/html/Common.php on line 362
>
> Here are lines 359 to 365:
>
>
  
> 359: //CCGetDBValue @0-6DCF4DC4  
> 360: function CCGetDBValue($sql, &$db)  
> 361: {  
> 362:  $db->query($sql);  
> 363:  $dbvalue = $db->next_record() ? $db->f(0) : "";  
> 364:  return $dbvalue;  
> 365: }  
> 
>
>
> The include page works by itself, and the page calling the include works
by
> itself. This error only occurs when the inlude is added to the parent
page.
>
> Any feedback appreciated.
>
>
>
> ---------------------------------------
> Sent from YesSoftware forum
> http://forums.codecharge.com/
>


Add new topic Subscribe to topic   


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.