| Author | 
		  Message
		 | 
		
		  | siva1431202 | 
		  
		    
			  
				 Posted: Thu May 26, 2011 12:19 am    Post subject: want help in PHP | 
				     | 
			   
			 
		   | 
		
		
		   Novice
 
 Joined: 04 May 2011 Posts: 20
  
  | 
		  
		    
			  
				$array1[i] = $input_assembly -> XMLNSC -> Employee -> Emp[]->empid->getvalue();
 
 
can anyone say the best way to get all the employee id's in an array.
 
 
 
Emp[] doesn't work and i am getting only one value of that message tree | 
			   
			 
		   | 
		
		
		  | Back to top | 
		  
		  	
		   | 
		
		
		    | 
		
		
		  | fjb_saper | 
		  
		    
			  
				 Posted: Thu May 26, 2011 2:09 am    Post subject: Re: want help in PHP | 
				     | 
			   
			 
		   | 
		
		
		    Grand High Poobah
 
 Joined: 18 Nov 2003 Posts: 20768 Location: LI,NY 
  | 
		  
		    
			  
				
   
	| siva1431202 wrote: | 
   
  
	$array1[i] = $input_assembly -> XMLNSC -> Employee -> Emp[]->empid->getvalue();
 
 
can anyone say the best way to get all the employee id's in an array.
 
 
 
Emp[] doesn't work and i am getting only one value of that message tree | 
   
 
 
Obviously you are working with something different from ESQL or java compute node. Could it be php?
 
 
Look at the samples. Seems to me you are missing something between input_assembly and XMLNSC... but then again I might be mistaken because this is obviously not from a java compute node...
 
 
Just as obviously why would you want to use getvalue at the end? You are trying to assign a node value, where you should be conceptually assigning the node.    _________________ MQ & Broker admin | 
			   
			 
		   | 
		
		
		  | Back to top | 
		  
		  	
		   | 
		
		
		    | 
		
		
		  | siva1431202 | 
		  
		    
			  
				 Posted: Thu May 26, 2011 2:41 am    Post subject:  | 
				     | 
			   
			 
		   | 
		
		
		   Novice
 
 Joined: 04 May 2011 Posts: 20
  
  | 
		  
		    
			  
				I am assigning empid values to an array. but its not working and i am trying for the same.
 
 
i dont kow how to take all the empid's of the message tree to the array.
 
if i have records like 
 
empid,firstname,lastname
 
 
i want take all the empid's of that list into an array.
 
array[i]=(7566,74577,843787,894898)
 
i am trying to get this from that message tree. | 
			   
			 
		   | 
		
		
		  | Back to top | 
		  
		  	
		   | 
		
		
		    | 
		
		
		  | fjb_saper | 
		  
		    
			  
				 Posted: Thu May 26, 2011 3:07 am    Post subject:  | 
				     | 
			   
			 
		   | 
		
		
		    Grand High Poobah
 
 Joined: 18 Nov 2003 Posts: 20768 Location: LI,NY 
  | 
		  
		    
			  
				
   
	| siva1431202 wrote: | 
   
  
	I am assigning empid values to an array. but its not working and i am trying for the same.
 
 
i dont kow how to take all the empid's of the message tree to the array.
 
if i have records like 
 
empid,firstname,lastname
 
 
i want take all the empid's of that list into an array.
 
array[i]=(7566,74577,843787,894898)
 
i am trying to get this from that message tree. | 
   
 
 
 
Have you tried walking the message tree from a reference? _________________ MQ & Broker admin | 
			   
			 
		   | 
		
		
		  | Back to top | 
		  
		  	
		   | 
		
		
		    | 
		
		
		  | siva1431202 | 
		  
		    
			  
				 Posted: Thu May 26, 2011 10:20 pm    Post subject:  | 
				     | 
			   
			 
		   | 
		
		
		   Novice
 
 Joined: 04 May 2011 Posts: 20
  
  | 
		  
		    
			  
				| yes i tried it also but no luck... | 
			   
			 
		   | 
		
		
		  | Back to top | 
		  
		  	
		   | 
		
		
		    | 
		
		
		  | mqjeff | 
		  
		    
			  
				 Posted: Fri May 27, 2011 3:58 am    Post subject:  | 
				     | 
			   
			 
		   | 
		
		
		   Grand Master
 
 Joined: 25 Jun 2008 Posts: 17447
  
  | 
		  
		    
			  
				
   
	| siva1431202 wrote: | 
   
  
	| yes i tried it also but no luck... | 
   
 
 
 
Could you be a little clearer?  
 
 
Do you mean you wrote a loop that iterated over $input_assembly -> XMLNSC -> Employee -> Emp[] and then executed >empid->getvalue() for each one and put that into an array element?
 
 
And that didn't work? What did it do instead of working? | 
			   
			 
		   | 
		
		
		  | Back to top | 
		  
		  	
		   | 
		
		
		    | 
		
		
		  | 
		    
		   |