<div id="myCarousel1" class="carousel slide" data-ride="carousel">
<!-- Wrapper for slides -->
                              <div class="carousel-inner" role="listbox">
                              
                              
                                  
    <?php     
        
$can = 0;
include('concha.php');
mysql_connect ("$host", "$usuario", "$contra");
mysql_select_db ("$basedatos");

$sql = "SELECT * FROM notas_tapa WHERE cu3er = '1' ORDER BY ID desc";

$consulta = mysql_query ($sql);
while ($row = mysql_fetch_array($consulta))
{
$ID_nota = $row["ID"];
$foto = $row["foto"]; $ext_img = $row["ext_img"];
$titulo = $row["titulo"];
$texto = $row["texto"];
$nota = $row["nota"];

$can = $can + 1;


$sql2 = "SELECT * FROM notas WHERE ID = '$nota'";

$consulta2 = mysql_query ($sql2);

while ($row2 = mysql_fetch_array($consulta2))

{
$titulo11 = $row2["titulo"];



}
mysql_free_result($consulta2);




?>

    <div class="<? if ($can == 1) {?>item active<? } else {?>item<? };?>">
                                  <?php if($nota == 0) {} else {?> <a target="_parent" href="<? echo $dom;?>/nota/<?php echo $nota ?>/<?php echo urls_amigables($titulo11) ?>"> <?php };?><img alt="PUBLICIDAD" src="<? echo $dom;?>/upload_pic/thumbnail_<?php echo $foto ?>.jpg" title="<?php echo $titulo ?>" width="100%" class="img-responsive" >
                                  <?php if ($titulo == '') {} else {?>
                                    <div id="carousel-caption" class="carousel-caption">
                                       <div align="left"  style="font-size:19px;  font-family:<?php echo $style_titulo ?>; "><?php echo $titulo ?></div>
                                      
                                    </div><?php };?>
                                   <?php if($nota == 0) {} else {?> </a>
                                  
                                  
                                  
                                   <?php };?> 
                                </div>

                      <?
}
mysql_free_result($consulta);
?>
                              
                              
                               
                            
                                
                           

                              </div>

                              <!-- Left and right controls -->
                              <a class="left carousel-control" href="#myCarousel1" role="button" data-slide="prev">
                                <span class="glyphicon glyphicon-chevron-left" aria-hidden="true"></span>
                                <span class="sr-only">Previous</span>
                              </a>
                              <a class="right carousel-control" href="#myCarousel1" role="button" data-slide="next">
                                <span class="glyphicon glyphicon-chevron-right" aria-hidden="true"></span>
                                <span class="sr-only">Next</span>
                              </a>
                            </div>
