Ver Mensaje Individual
  #5 (permalink)  
Antiguo 26/03/2014, 14:22
mrodriguezqui
 
Fecha de Ingreso: febrero-2014
Ubicación: Bogota
Mensajes: 20
Antigüedad: 11 años
Puntos: 0
Respuesta: Noticias Relacionadas

Código PHP:
Ver original
  1. <?php
  2.  $Articulos_rel= mysql_query("SELECT * FROM noticias WHERE MATCH (titulo) AGAINST (".$get_date['noticia'].") ORDER BY relevancia; ".$get_date['titulo']."%'");
  3.      echo "
  4.      <table width=80% align=left>
  5.      <tr>
  6.      <td class='titulos_tablas' width='50%' align='left' style='font-size:12px;'>  Articulos Relacionados</td>
  7.      </tr>
  8.     ";
  9.  while ($row = mysql_fetch_array($Articulos_rel))
  10.  {
  11.   $get_date= mysql_fetch_array(mysql_query ("SELECT DATE_FORMAT(fecharegistro, '%d/%m') AS fecharegistroformat, DATE_FORMAT(fecharegistro, '%Y') AS fecharegistroformat2 FROM noticias WHERE titulo='".$row['titulo']."'"));
  12.    echo "
  13.    <tr> <td style='padding-top:2px; padding-bottom:2px; padding-left:2px; border-bottom: solid 1px #9C9C9C;' class='c'>
  14.     <b>".$get_date['fechaformat']."</b> > <a href='index.php?titulo=".$nombre."&a=noticia=".$row['titulo']."' style='font-size:11px;'>".$row['titulo_noticia']."</a>
  15.    </td></tr>
  16.   ";
  17.  }  
  18. ?>
Cita:
Iniciado por oscard41 Ver Mensaje
Si quieres ayuda empieza por ordenar tu codigo y colocarlo en Highlight

Saludos