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

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


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

$ID_NOTA = "$ID";

if ($ID == '') {exit;};


mysql_connect ("$host", "$usuario", "$contra");

mysql_select_db ("$basedatos");

$sql = "SELECT * FROM notas WHERE ID = '$ID' ";

$consulta = mysql_query ($sql);

while ($row = mysql_fetch_array($consulta))

{

$ID = $row["ID"];



$carpetafoto = $row["carpetafoto"];

$foto = $row["foto"]; $ext_img = $row["ext_img"];

$titulo = $row["titulo"];
$titulo_xx = $row["titulo"];

$texto = $row["texto"];

$cat_no = $row["cat"];

$bajada = $row["bajada"];

$audio = $row["audio"];


$d = $row["d"];

$m = $row["m"];
$m2 = $row["m"];

$a = $row["a"];


$tag1 = $row["tag1"];

$tag2 = $row["tag2"];

$tag3 = $row["tag3"];
$tag4 = $row["tag4"];
$tag5 = $row["tag5"];
$youtube = $row["youtube"];
$visitas = $row["visitas"];

$html = $row["html"];
$ejemplo_marca_de_agua = $row["ejemplo_marca_de_agua"];
}

mysql_free_result($consulta);

$visitas = $visitas + 1;
mysql_connect("$host","$usuario","$contra");


$sSQL="UPDATE  `$basedatos`.`notas` SET  `visitas` =  '$visitas' WHERE ID = '$ID_NOTA'";


mysql_db_query("$basedatos",$sSQL);





?>
   
<!DOCTYPE html>

<html lang="es"> 
<link href="http://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css" rel="stylesheet">
  <head>



<link href="https://fonts.googleapis.com/css?family=Roboto" rel="stylesheet">

</head>

<body>
<div class="container">
<div class="row">

<div class="col-sm-12 col-lg-12" style="font-family: 'Roboto', sans-serif;"><span style="font-size:17px;"><?php

$texto = str_replace ('<img' , "<img class='img-responsive'",$texto);

 echo $texto ?></span>
 
 
 
 <p>
 
     <?php if ($youtube == NULL) {} else { ?>
  
  <iframe width="100%" height="390" src="https://www.youtube.com/embed/<?php echo $youtube ?>" frameborder="0" allowfullscreen></iframe> 
  
  
   

      <?php  }; ?></div>
  </div>
 </div>
 
         <script src="http://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js"></script>
      
  </body>

</html>

