More ???s on passing variables

From: Date: Wed, 31 Jul 2002 14:40:59 +0000
Subject: More ???s on passing variables
Groups: php.general 
Request: Send a blank email to php-general+get-110525@lists.php.net to get a copy of this message
Hello everyone, I have a class in my script which has information on specific tables such as standard queries, tablenames, Index field... Then there is a function called StandardDropDown($ItemNum, $Name) which gets the info from the appropriate table you want and displays a dropdown menu based on the table. $ItemNum referrs to the table I want to output, $Name is what I want to call the dropdown in the HTML output. When I call the function directly from a page it works great. When I call it from another function I get an error: Fatal error: Call to a member function on a non-object in /var/www/html/COMESA/theme/functions.inc on line 61 This is line 61: $TableName= $ItemNum->get_TableName(); As I said, I only get this error when I call from a function, not if I call directly from a page. I don't see why that should make any difference though. Paul

« previous php.general (#110525) next »