CodeCharge Studio
search Register Login  

Visual PHP Web Development

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

YesSoftware Forums -> Archive -> GotoCode Archive

 Label Value Substitution in PHP - code question

Print topic Send  topic

Author Message
JEF
Posted: 05/08/2003, 8:33 PM

I can't seem to figure this out.

// We want to take the linkType (Integer) and get the type Description from the type file $link is the form and $Connection1 is the DB connection

global $link;
global $Connection1;
$link->linkType->SetValue(CCDLookUp("type_title", "type", " type_id=" . $Connection1->ToSQL($link->linkType->GetValue(), ccsInteger), $Connection1));

I get the following error:
PHP Fatal error: Call to a member function on a non-object in ./link_list_events.php on line 20

Can anyone see the problem here?

Thanks,

JEF
glerma
Posted: 05/08/2003, 8:46 PM

It seems that PHP is complaining about some object that does not exist.

Let's see...

1. $link - Make sure this form really exists.

2. $Connection1 - Make sure you declared the database connection prior to
Example: $Connection1 = new clsDB<Database Connection Class Name>;

3. linkType - Make sure this object exists on the form $link.

That's all I can see. Hope it helps.

Happy Coding!
~gman


JEF
Posted: 05/10/2003, 1:22 PM

THANKS! That helped. The problem is that I forgot the DB in my connection name. When I changed $Connection1 to $DBConnection1 things worked.

JEF

   


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.