Re: query/php problem
Okay, I changed the location value with:
is_front() || is_forum() || is_tag() || is_topic()
And changed the code with:
function get_bb_menu() {
global $bbdb;
$menutest = mysql_query("SELECT * FROM $bbdb->menu WHERE
set = 'active' ORDER BY
order ASC");
And re-written the li part with php:
<li><a <?php if ('location')
{
echo " id="current";
?>
href="<?php ('page'); ?>"><?php ('item'); ?></a>
<?php
}
?></li>
So technically I need to put this in a foreach and it wil be like:
<li><a <?php if (is_front() || is_forum() || is_tag() || is_topic())
echo " id="current"; ?>href="index.php">Forums</a> </li>
<li> <a href="search.php"> Search</a></li>
(the is_front() etc will not be shown ofcourse, but it’s to make it clear)
But how to make such a foreach?