Código PHP:
Ver original<div id="proyectos" class="section-content">
<div class="container">
<div class="title-section text-center">
<h2>Nuestros Proyectos</h2>
<span></span>
</div> <!-- /.title-section -->
<div class="menupro-section text-left">
<nav id="options" class="work-nav">
<?php
$query_Recordset1 = sprintf("SELECT * FROM categorias"); if (isset($_GET['catactu'])) $catactu=$_GET['catactu'];
else $catactu=1;
$query_Recordset2 = sprintf("SELECT * FROM productos WHERE productos.idc=%s",$catactu); ?>
<?php
for ($k=0;$k<$totalRows_Recordset1;$k++){?>
<ul id="filters" class="option-set" data-option-key="filter">
<li><a href="?catactu=
<?php echo $row_Recordset1['idc']; ?>#proyectos">
<?php if($row_Recordset1['idc']==$catactu) echo '<span class="catactu">'. utf8_encode($row_Recordset1['nomc']).'</span>'; else echo utf8_encode($row_Recordset1['nomc'])?></a></li>
</ul>
<?php
}
?>
</nav>
</div> <!-- /.menupro-section -->
<div class="row">
<div class="col-md-3 col-sm-6">
<div class="portfolio-thumb">
<?php
if($numprods == 0){
echo "<span style='font-weight: bold'>NO HAY PROYECTOS</span>";
}
else{
while("SELECT `fotop`, `textop` FROM `productos` WHERE `idc`" .$numprods->fetch_array())
{
$idp=$row_Recordset2['idp'];
echo "<div id='fotos'>";
echo "<figure class='frame2'>";
echo "<img src='catalogo/".$imagen."' alt=''>";
echo "<h4><a data-rel='lightbox' href='catalogo/".$imagen."'>".$descrip."</a></h4>";
echo "</figure>";
echo "</div>";
}
}
?>
</div> <!-- /.portfolio-thumb -->
</div> <!-- /.col-md-3 -->
</div> <!-- /.row -->
</div> <!-- /.container -->
</div> <!-- /#proyectos -->