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