Very simple. In a table. Each row in the SQL would be put in a table row. All the fields separated into colums.
--------------- Added [DATE]1277163043[/DATE] at [TIME]1277163043[/TIME] ---------------
Here, I can write out exactly what I am trying to do. I have in a View a table that contains Gym Names and Number of Members. The list is organized in descending order from most members to least. The MySQL statement I used to load it into an array was:
$gymarray = $db->query_first_slave("SELECT * FROM `gym_representation` ");
I then registered it:
$templater->register('gym', $gymarray);
In my CSS I can get the first result with:
{vb:raw gym.Members} and {vb:raw gym.Gym}
How do I get the next result
and
how do I build a table that grows dynamically to fit the data?
I tried to use a while loop and use another CSS template that contains the information for a row, but it didn't work. I am just missing how to do all this stuff in vBulletin.
|