RE: [PHP] extract varying data from array with different formatting

2009-04-17 Thread Ford, Mike
On 14 April 2009 18:12, PJ advised: > Jim Lucas wrote: >> PJ wrote: >>> Jim Lucas wrote: PJ wrote: > foreach does a nice job if you want the results identical each time. > What can you use to change the formatting of the results dependent on > the number of results. Here's an exam

Re: [PHP] extract varying data from array with different formatting

2009-04-14 Thread PJ
Jim Lucas wrote: > PJ wrote: >> Jim Lucas wrote: >>> PJ wrote: foreach does a nice job if you want the results identical each time. What can you use to change the formatting of the results dependent on the number of results. Here's an example: foreach ( $authors[$bookID] AS

Re: [PHP] extract varying data from array with different formatting

2009-04-13 Thread Jim Lucas
PJ wrote: Jim Lucas wrote: PJ wrote: foreach does a nice job if you want the results identical each time. What can you use to change the formatting of the results dependent on the number of results. Here's an example: foreach ( $authors[$bookID] AS $authorID => $authorData ) { #

Re: [PHP] extract varying data from array with different formatting

2009-04-12 Thread Ashley Sheridan
On Sat, 2009-04-11 at 16:11 -0500, PJ wrote: > foreach does a nice job if you want the results identical each time. > What can you use to change the formatting of the results dependent on > the number of results. > Here's an example: > foreach ( $authors[$bookID] AS $authorID => $authorData ) { >

Re: [PHP] extract varying data from array with different formatting

2009-04-12 Thread Jim Lucas
PJ wrote: foreach does a nice job if you want the results identical each time. What can you use to change the formatting of the results dependent on the number of results. Here's an example: foreach ( $authors[$bookID] AS $authorID => $authorData ) { # Display the