Good day!
<? if (!empty($list6)) { ?> <ul> <? foreach ($list6 as $key => $post6) { if($post5->podkat.$post5->id == $post6->podkat) { ?> <li><a href="#"><?=$post6->name;?></a></li> <? } } ?> </ul> <? } ?>
Here it is necessary to make so that ul (opening and closing) are output, if the condition
$post5->podkat.$post5->id == $post6->podkat
worked, but ul was deduced once, and not in a cycle.
pages
"); while ($ result = mysql_fetch_array ($ sql)) {echo "Everything you wish will be displayed here in a loop"; }?> - webkostya 5:14