<div class="flickity-carousel carousel3 js-flickity" data-flickity='{ "prevNextButtons": false, "lazyLoad": true, "initialIndex": 0, "freeScroll": false, "autoPlay": 6500, "pageDots": false }' >

 <?php

        $can = 0;



$sql = "SELECT * FROM notas_tapa WHERE cu3er = '2' 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="carousel-cell3">

        <?php if($nota == 0) {} else {?>

            <a target="_parent" href="<? echo $dom;?>/nota/<?php echo $nota ?>/<?php echo urls_amigables($titulo11) ?>" class="d-block ">

                <img class="carousel-cell-image" data-flickity-lazyload="<? echo $dom;?>/upload_pic/thumbnail_<?php echo $foto ?>.jpg" alt="<?php echo $titulo ?>" >

                <div class="news-summary">
                        <h3 class="colorTitulo"><?php echo $titulo ?></h3>
                            <div class="mom-post-meta nb-item-meta">
                                <span class="entry-date"><?php echo $d ?> de <?php echo $m ?>, <?php echo $a ?></span>
                            </div>
                            <span class="bajada"><p class="selectionShareable" style="margin-bottom:0;"><?php $texto = str_replace('<em>','',$texto);  $texto = str_replace('</em>','',$texto);  echo $texto; ?></p></span>
                </div>

            </a>

        <?php };?>

    </div>



                                      <?

}

mysql_free_result($consulta);

?>
      </div>
