Ver Mensaje Individual
  #7 (permalink)  
Antiguo 24/09/2008, 03:25
Avatar de naitmeir
naitmeir
 
Fecha de Ingreso: junio-2008
Ubicación: Barcelona
Mensajes: 227
Antigüedad: 15 años, 11 meses
Puntos: 0
Pregunta Duda sobre sistema de noticias con tags

Me ha quedado asi el tema, pero el eplorer me peta! x_D en fin nose, no me deja ver el error...

Código PHP:
               $result mysql_query ("select categoria from noticias order by leido",$conexion) or die( mysql_error() );
               while(
$row mysql_fetch_array($result)){
                        
$categoria=stripslashes($row["categoria"]);
                        
//separo la cadena
                        
$tagsrep=explode(",",$categoria);
                        
//elimino resultados repetidos
                        
$tags=array_unique($tagsrep);
                        
//muestro los resultados y los enlazo
                        
for($i=0;count($tags);$i++)
                        {
                        
$tag="<a id=margen href=tags.php?tag=$tags[$i]>$tags[$i]</a>";
                        echo 
"$tag ";
                        }       
               }