Re: Fatal error: Unsupported operand types

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



kmh496 wrote:
can somebody explain why

            $this->param = $this->SYSTEM->db->answer + $this->param;

is causing the error

no. because:

a, you don't mention the version of php you use
b, we don't have knowledge of you codebase (posting code listings for
a complete class really isn't going to help much)

have you tried to debug the problem? using print_r() or var_dump()?

e.g.: ...


Fatal error: Unsupported operand types
in /var/www/current/mjguest/modules/settings.php on line 52



context is

        function settings(&$SYSTEM)
        {
            $this->SYSTEM = &$SYSTEM;
            $this->SYSTEM->db->ask(1, 'settings_load');
            $this->SYSTEM->db->get_row();

echo '<pre>';
var_dump($this->SYSTEM->db->answer, $this->param)
echo '</pre>';


            $this->param = $this->SYSTEM->db->answer + $this->param;
        }





--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux