<?php include 'concha.php';?>

 <?php 
$ID = (int)$_GET['ID'];



$sql = "SELECT * FROM `disciplinas_categorias` WHERE `ID` = '$ID' LIMIT 1";
$consulta = $conn->query($sql);
while ($row = $consulta->fetch_assoc())
{
$categoria = $row["categoria"];
$disciplina = $row["disciplina"];
}


$consulta->free_result();

$sql = "SELECT * FROM `disciplinas` WHERE `ID` = '$disciplina' LIMIT 1";
$consulta = $conn->query($sql);
while ($row = $consulta->fetch_assoc())
{
$disciplina = $row["nombre"];

}

$consulta->free_result();


?>

<?php 

$titulo = "$disciplina $categoria - $nombresitio";
include 'arriba_full.php'
?>



<div class="<? if ($estiloweb <= 3){echo "col-lg-12" ;} else {echo "col-lg-9" ;} ;?>  col-md-9 col-sm-12 col-xs-12" style="margin-bottom:15px;">
    

<div id="grid" style=" background-color:#fff;" data-sticky_column>
              
    
 
    <div class="widget-head" style="">
                    <h3 <? if ($estiloweb <= 3){echo 'style="padding: 1px 5px 1px 5px; background-color:'; echo $d_color_fondo_menu; echo ';font-family:'; echo $style_titulo; echo ';font-size:25px;color:#ffffff;"'; } else {echo 'class="widget-title"';} ?>>
                        <span><?php echo $disciplina ?> / Categor&iacute;a: <b><?php echo $categoria ?></b></span>
                    </h3>
                </div>   
              



    
<?php

$sql65 = "SELECT * FROM `personas`";
$consulta65 = $conn->query($sql65);
while ($row65 = $consulta65->fetch_assoc())
{

$ID = $row65["ID"];

$nombre = $row65["nombre"];
$foto = $row65["foto"];
$carpetafoto = $row65["carpetafoto"];



?>
<div class="row">

<div class="col-12 col-lg-4">

 <img src="<?php echo $dom ?>/<?php echo $foto ?>"  class="img-fluid"/>
 </div>
<div class="col-12 col-lg-8">
 <?php echo $nombre ?>
 </div>
 
    </div>

<hr>

<?


 }
$consulta65->free_result();

?>
    

    
    </div>

      </div>



<?php include 'abajo_full.php'?>
