 
			
				21/07/2015, 10:05
			
			
			     |  
      |    |    |    Fecha de Ingreso: julio-2015  
						Mensajes: 15
					  Antigüedad: 10 años, 3 meses Puntos: 0     |        |  
  |      Respuesta: Problema con la presentacion de la base de datos        La pagina es unica (index.php) y esta hecha por secciones. Esta es la seccion del catalogo:   
<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 
                        mysql_select_db($database_conexion1, $conexion1); 
			$query_Recordset1 = sprintf("SELECT * FROM categorias"); 
			$Recordset1 = mysql_query($query_Recordset1, $conexion1) or die(mysql_error()); 
			$row_Recordset1 = mysql_fetch_assoc($Recordset1); 
			$totalRows_Recordset1 = mysql_num_rows($Recordset1); 
			if (isset($_GET['catactu'])) 
				$catactu=$_GET['catactu']; 
				else $catactu=1;	 
                        $query_Recordset2 = sprintf("SELECT * FROM productos WHERE productos.idc=%s",$catactu); 
			$Recordset2 = mysql_query($query_Recordset2, $conexion1) or die(mysql_error()); 
			$row_Recordset2 = mysql_fetch_assoc($Recordset2); 
			$numprods = mysql_num_rows($Recordset2); 
			?> 
                        <?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  
                        $row_Recordset1 = mysql_fetch_assoc($Recordset1);  
                        } 
                        ?> 
              	</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']; 
	    $imagen=utf8_encode($row_Recordset2['fotop']); 
	    $descrip=utf8_encode($row_Recordset2['textop']); 
		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 -->           |