<?php     
        
$can = 0;
include('concha.php');
mysql_connect ("$host", "$usuario", "$contra");
mysql_select_db ("$basedatos");

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

?>

           <div class="<? if ($can == 1) {?>item active<? } else {?>item<? };?>"><?php if($nota == 0) {} else {?> <a target="_parent" href="<?php echo $dom ?>/nota.php?ID=<?php echo $nota ?>"> <?php };?><img src="upload_pic/thumbnail_<?php echo $foto ?>.jpg"
         <?php  if ($titulo == NULL) {} else {?>
          
           title="<b><?php echo $titulo ?></b><br>
 <?php echo $texto ?>" <?php };?>
 
 
 
  > <?php if($nota == 0) {} else {?> </a> <?php };?>  </div>


<?
}
mysql_free_result($consulta);

?>


        
      
          
          
          
          
        </ul>
        <!-- end Basic jQuery Slider -->

      </div>
      <!-- End outer wrapper -->
      
      <!-- attach the plug-in to the slider parent element and adjust the settings as required -->
      <script class="secret-source">
        jQuery(document).ready(function($) {
          
          $('#banner-slide').bjqs({
            animtype      : 'slide',
			animduration : 450, // how fast the animation are
			
animspeed : 5000, // the delay between each slide
automatic : true, // automatic
            height        : 180,
            width         : 960,
            responsive    : true,
            randomstart   : false,
			showcontrols : true, // show next and prev controls
			nexttext : '>', // Text for 'next' button (can use HTML)
prevtext : '<',
showmarkers : false,
			
          });
          
        });
      </script>

    </div>


  </body>
</html>
