<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>

<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Documento sin t&iacute;tulo</title>


<meta http-equiv=”Expires” content=”0″>

<meta http-equiv=”Last-Modified” content=”0″>

<meta http-equiv=”Cache-Control” content=”no-cache, mustrevalidate”>

<meta http-equiv=”Pragma” content=”no-cache”>


<style type="text/css">
<!--

	  a:link {text-decoration:none;font-weight:none;color:#333333;}
	  
      a:visited {text-decoration:none;font-weight:none;color:#333333;}

      a:hover {text-decoration:underline;font-weight:bold;color:#000000;}	  
	  


.Estilo15 {
	font-size: 10px;
	font-family: Verdana, Arial, Helvetica, sans-serif;
	color:#666666;
}
.Estilo16 {color: #000000}
.Estilo17 {
	font-size: 10px;
	font-family: Verdana, Arial, Helvetica, sans-serif;
	color: #000000;
	font-style: italic;
}

-->
</style>
</head>

<body>


<table width="180" border="0">

<?php 
include('concha.php');
;
$sql = "SELECT * FROM comentarios WHERE ver = 'si' AND sub_comentario = '0' ORDER BY ID desc LIMIT 50";
$consulta = $conn->query($sql);
while ($row = $consulta->fetch_assoc())
{
$nombre = $row["nombre"];
$ID = $row["ID"];
$texto = $row["texto"];
$fecha = $row["fecha"]; 
$sub_comentario = $row["sub_comentario"]; 
$IDD =  $row["IDD"];
if ($IDM == 0) {$es = 'no';} else {$es = 'si';};


?>
  <tr>
    <td><div align="justify"><span class="Estilo17">&raquo; <strong><?php echo $nombre ?></strong>:</span><span class="Estilo16"></span><br>
        <span class="Estilo15"><?php echo $texto ?></span>
        
        
        <br />

        

     
                <?

$c = 0;

$sql2 = "SELECT * FROM comentarios WHERE sub_comentario = '$ID' AND ver = 'si' ";

$consulta2 = $conn->query($sql2);
while ($row2 = $consulta2->fetch_assoc())

{

$c = $c + 1;

$nombre = $row2["nombre"];

$texto = $row2["texto"];





?>


<div align="justify"><span class="Estilo17" style="color: #333333;">RESPUESTAS:<br /> &raquo; <strong><?php echo $nombre ?></strong>:</span><br>
        <span class="Estilo15"  style="color: #999999;"><?php echo $texto ?></span>
                    <br />
<?php }

$consulta2->free_result();

?>
               <span class="Estilo15">
         <a  target="_top" href="<?php echo $dom ?>/nota.php?ID=<?php echo $IDD ?>">>INGRESAR EN LA NOTA</a>
         </span>
       <br /> 
<img src="lineachat.gif" width="176" height="3" border="0" /></div></td>
  </tr>
<?
}
$consulta->free_result();?>

</table>


</body>
</html>