Getting a list out of userfields
I currently have modified the postbit to get some information out of some userfields that only administrators can edit:
<if condition="$post['field5']"><div class="smallfont">yada yada: <a href = "../whatever/index.php?q= $post[field5]">whatever</a></div></if>
Works great, no problems.
But I recently added a couple values in the field separated by semi-colons, how do I get a list out of the field?
for ($i=0; $i <$post['field5']; $i++)
{
<if condition="$post['field5']"><div class="smallfont">yada yada: <a href = "../whatever/index.php?q=$post[field5]">whatever</a></div></if>
}
I know the above is wrong, I just wanted to get a general idea of what I want across.
Thanks in advance.
|