I am really new to this so this might seem stupid but I have this really simple code to display my content in a table

Περιγραφή

Τιμή

print $node->field_description[0]['view'] print $node->field_price[0]['view']
print $node->field_description[1]['view'] print $node->field_price[1]['view']
print $node->field_description[2]['view'] print $node->field_price[2]['view']
print $node->field_description[3]['view'] print $node->field_price[3]['view']

If I only have 4 elements in my table this is fine but what if I want to create more data everytime I need more code. I think what I need is a way to use a variable for the number of elements each time so I can create exactly the number of rows I need.
Can anyone help?

Comments

probatina’s picture

Assigned: probatina » Unassigned
Anonymous’s picture

Status: Active » Postponed (maintainer needs more info)

I don't unterstand how this is related to cck blocks. Could you pleasee explain that?