Re: Fatal error: Unsupported operand types

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

 



On 4/16/06, kmh496 <kmh496@xxxxxxxxxx> wrote:
>
> can somebody explain why
>
>             $this->param = $this->SYSTEM->db->answer + $this->param;
>
> is causing the error
>
>
> 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();
>
>             $this->param = $this->SYSTEM->db->answer + $this->param;
>         }

What is $this->param set to initially?
What is $this->SYSTEM->db->answer ?

use gettype and see what they are:

echo gettype($this->param) . '<br/>';
echo gettype($this->SYSTEM->db->answer) . '<br/>';

--
Postgresql & php tutorials
http://www.designmagick.com/

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