Re: for each question
I did that but you can’t use php in an echo:
<?php
global $bbdb;
$r = mysql_query("SELECT * FROM $bbdb->menu WHERE
set = 'active' ORDER BY
order ASC");
while($rw = mysql_fetch_array($r))
{
echo '<li><a href="'.$rw['page'].'">'.$rw['item'].'</a></li>';
}
?>
This works perfectly, but now I want to add some php code into <a
!here the php code!>...</a>
so it will look like this (i only show the echo now):
{
echo<li><a <?php if ('.$rw['is'].')
{
echo "id="current"";
}?> href="<?php option('uri'); ?>'.$rw['page'].'">'.$rw['item'].'</a></li>;
}`
But this aint working cause you cant do php in an echo. Any suggestions?