Ver Mensaje Individual
  #2 (permalink)  
Antiguo 15/02/2006, 14:05
MindPaniC
Invitado
 
Mensajes: n/a
Puntos:
SOLUCIONADO... puff que inepto soy... ahora me da verguenza el post.

el problema era que la variable estaba mal introducida y no la leia como variable.

al final ha quedado asi:
Código PHP:
<?php 
    $conexion 
= mysql_connect("localhost","xxxxxxxxxxxxxx","xxxxxxxxxx"); 
    
mysql_select_db("xxxxxxxxxx", $conexion) OR die("No se puede establecer la conexión a MySQL"); 
    
$auth_ary = auth(AUTH_READ, AUTH_LIST_ALL, $userdata);
    while ( list(
$auth_forum_id, $auth_level) = each($auth_ary) )      
    {
    if (!
$auth_level['auth_read'] )
    {
    
$auth_view_forums = ($auth_view_forums . " forum_id<>" . $auth_forum_id . " and ");
    }    } 
$auth_view_forums=($auth_view_forums=="") ? "" : ("WHERE " . $auth_view_forums ."1=1");
    
$sql = mysql_query("SELECT * FROM phpbb_topics ". $auth_view_forums." ORDER BY topic_last_post_id DESC LIMIT 0,10");
    while (
$row = mysql_fetch_array($sql)) {$id = "$row[topic_id]";
    
$titulo = "$row[topic_title]";$respuestas = "$row[topic_replies]";?>
    <li><a href='http://www.mindpanic.com/foros/viewtopic.php?t=<?=$id?>' title='<?=$titulo?>'><?=$titulo?></a></li><?}?>
Por cierto si a alguien se le ocurre algun otro metodo para mejorar la indexacion de contenidos y a ser posible camuflar estas direcciones dinamicas con estaticas soy todo orejas

Última edición por MindPaniC; 15/02/2006 a las 14:44