Fatal error: Unsupported operand types in

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
goyosito
Forum Newbie
Posts: 1
Joined: Fri Sep 23, 2005 12:15 pm
Location: Bolivia

Fatal error: Unsupported operand types in

Post 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]
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

line 75 is...?
Post Reply