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

 Fatal error: Call to a member function on a non-object

Print topic Send  topic

Author Message
An Hei
Posted: 05/19/2004, 11:10 AM

Hi,
trying to use: CCDLookUp function
I have a label - Label1
Here is what I have in Page_BeforeShow() for testing:
*********************************************
global $search;
global $DBConnection1;

$search->Label1->SetValue(CCDLookUp("description","prodlist","sku='A2101'", $DBConnection1) );
***************************************************

Here is the error message in my browser:

Fatal error: Call to a member function on a non-object in C:\webroot\search_events.php on line 41

I have never used this function before.
Please, help!
This is my first PHP project...
hidran

Posts: 29
Posted: 05/20/2004, 7:01 AM

verify the spelling of the variables if it's label1 or Label1.The message is telling that $search is not an object, take a look to see if the grid names
is search
View profile  Send private message

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.

Internet Database

Visually create Web enabled database applications in minutes.
CodeCharge.com

Home   |    Search   |    Members   |    Register   |    Login


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