Skip to:
Content
Pages
Categories
Search
Top
Bottom

Re: for each question

Hmm got this now:

<?php

global $bbdb;

$r = mysql_query("SELECT * FROM $bbdb->menu WHERE set = 'active' ORDER BY order ASC");

while($rw = mysql_fetch_array($r))

$class="";

if ($rw['is']) { $class .=" current" }

{

echo '<li><a class="$current" href="'.$rw['page'].'">'.$rw['item'].'</a></li>';

}

?>

But this gives me an error:

Parse error: parse error, unexpected ‘}’ on line 71

Think I have misplaced something here?

Greetz

ps I didn’t include $uri=option("uri").$rw["page"]; at all cause I wanted to test this first. So I keep it out for now…

Skip to toolbar