Easy A
Would you like to react to this message? Create an account in a few clicks or log in to continue.


 
HomeHome  Latest imagesLatest images  SearchSearch  RegisterRegister  Log inLog in  

Share
 

 get array value

View previous topic View next topic Go down 
AuthorMessage
Stronger
Member
Member
avatar

Posts : 17
Join date : 2011-03-09

get array value Empty
PostSubject: get array value   get array value EmptyThu Jun 23, 2011 5:38 am

Please advice how could I get the value of phone number and language name from the following: I want to display all elements in a table.
[You must be registered and logged in to see this image.]
Thanks.
Back to top Go down
Splashy
Member
Member
Splashy

Posts : 5
Join date : 2011-04-18

get array value Empty
PostSubject: Re: get array value   get array value EmptyThu Jun 23, 2011 5:38 am

Here is the solution:
<cfloop array="#employees#" index="i">
<tr>
<td>#i.getEmp_ID()#</td>
<td>#i.getFirstName()#</td>
<td>#i.getLastName()#</td>
<td>#i.getSalary()#</td>
<td>#i.getDepartment().getDEPT_NAME()#</td>
<td>&nbsp;
<cfloop array="#i.getPhoneNumbers()#" index="j">
(#j.getareaCode()#) #j.getphoneNumber()#
</cfloop>
</td>
<td>&nbsp;
<cfloop array="#i.getLanguages()#" index="k">
<li>#k.getname()#
</cfloop>
</td>
</tr>
</cfloop>
Back to top Go down
 

get array value

View previous topic View next topic Back to top 
Page 1 of 1

 Similar topics

-
» Display image in an array format
» Can you expand an array of N to fill N functional arguments?
» Array element display, newbie question
» fetch array vs fetch assoc

Permissions in this forum:You cannot reply to topics in this forum
Easy A :: get array value Edit-trash Useless :: Trash-