thanks for that
although it now it seems to the be the loop that's causing it to only show one row
PHP Code:
while ($post = $DB_site->fetch_array($posts))
{
$cell++;
$template = iif($post['isdeleted'], "postbit_deleted", "groups_viewthread_postbit");
// lets work out the age
if (!$year)
{
$year = vbdate('Y', TIMENOW, false, false);
$month = vbdate('n', TIMENOW, false, false);
$day = vbdate('j', TIMENOW, false, false);
}
if (empty($gotage["$post[userid]"]))
{
$date = explode('-', $post['birthday']);
if ($year > $date[2] AND $date[2] != '0000')
{
$post['age'] = $year - $date[2];
if ($month < $date[0] OR ($month == $date[0] AND $day < $date[1]))
{
$post['age']--;
}
if ($post['age'] < 101)
{
$gotage["$post[userid]"] = $post['age'];
}
else
{
unset($post['age']);
}
}
else
{
$post['age'] = $gotage["$post[userid]"];
}
}
$post['musername'] = fetch_musername($post);
$post['rank'] = iif($post['leaderid']==$post['userid'], "Group Leader", "nope");
$post['gender'] = "<img src=\"$stylevar[imgdir_misc]/$post[field24].gif\" alt=\"$post[field24]\" />";
$post['location'] = $post[field2];
$post['spacer1'] = iif($post['age'] AND $post['gender'], "/", "");
$post['spacer2'] = iif($post['gender'] AND $post['location'], "/", "");
$post['showsignature'] = iif($post['signature'], TRUE, FALSE);
$post['postcount'] = $cell;
$forum['allowposting'] = TRUE;
$SHOWQUICKREPLY = TRUE;
$postbit = construct_postbit($post, $template);
//extract($post);
} //got all that info