Welcome Guest, Not a member yet? Register   Sign In
Outputting results to a table
#4

[eluser]alboyd[/eluser]
So what is your question?

is it to do with the three columns and having them as a b c // d e f // g h i like that or??

It should be fairly easy to do that. I would take your countries data in the view and figure out how many columns you want, then based on the number of countries in the countries array you can figure out how many to put in each column, then you just do a foreach and output them, creating a new column when a counter reaches the predetermined value (number of countries per column).

Just make sure also that your query orders the countries in alphabetical order..

let me know if you need some more explanation or if I am not understanding your question...

EDIT: and as Jedd said - I wouldn't bother using the table library/helper IMO it's just easier to write the table HTML yourself. There should be no need for you to "echo" HTML though?


Messages In This Thread
Outputting results to a table - by El Forum - 08-23-2009, 06:56 PM
Outputting results to a table - by El Forum - 08-23-2009, 07:14 PM
Outputting results to a table - by El Forum - 08-23-2009, 07:14 PM
Outputting results to a table - by El Forum - 08-23-2009, 07:16 PM



Theme © iAndrew 2016 - Forum software by © MyBB