In article <[EMAIL PROTECTED]>,
[EMAIL PROTECTED] says...
> Not knowing what else is going on here... at the
> very least your row counting variable is inconsistent.
>
> You mention row_count (in the modulus test) and rowcount
> (in the initialization and incrementation).
>
Typo...
$rowcount = 0
while($forum = $db->fetch_array($query)) {
$forumlist .= ($rowcount % 2) ?
forum($forum, "index_forum") :
forum($forum, "index_forum2");
$rowcount++;
}
--
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]