Page 1 of 1

Fatal error: Unsupported operand types in

Posted: Fri Sep 23, 2005 3:26 pm
by goyosito
feyd | Please use

Code: Select all

and

Code: Select all

tags where approriate when posting code. Read:  [url=http://forums.devnetwork.net/viewtopic.php?t=21171]Posting Code in the Forums[/url][/color]


I made a especial library for my web services I'm trying to push into an array the data with their respective field names, but when I started the application I receive this message:

Code: Select all

Fatal error: Unsupported operand types in c:\inetpub\wwwroot\globales\globals.php on line 75
PHP Fatal error: Unsupported operand types in c:\inetpub\wwwroot\.....
My function is:

Code: Select all

function into_arrays($QueryResult)
{
  $i=1;
  while (true)
  {
     if (!odbc_fetch_into( $QueryResult, $i, &$X ) ) //ve si hay mas registros
     {  ++$i;
		   break;
 }
      $R[$i-1] = $X;
     for ($count = 1; $count <= count($R[$i-1]); $count++)
     $RR[$i-1][odbc_field_name($QueryResult,$count)] = $R[$i-1][$count-1];
	}
  	return $RR;
}
as you can see for me my function is OK.
I'm using PHP 4.x with IIS 2000 please help me to solve or understand what the problem is?

Goyosito


feyd | Please use

Code: Select all

and

Code: Select all

tags where approriate when posting code. Read:  [url=http://forums.devnetwork.net/viewtopic.php?t=21171]Posting Code in the Forums[/url][/color]

Posted: Fri Sep 23, 2005 3:41 pm
by feyd
line 75 is...?