Ver Mensaje Individual
  #21 (permalink)  
Antiguo 27/04/2008, 19:45
Avatar de nuckzuniga
nuckzuniga
 
Fecha de Ingreso: marzo-2008
Mensajes: 71
Antigüedad: 16 años, 1 mes
Puntos: 0
Re: While problematico

Miren, como no me funciono lo que dije arriba, se me ocurrio plantearlo todo en un solo query.

me quedo asi:

Código PHP:

<?PHP
$id_user
=$_SESSION["id_usuario"];


$sql_proyecto ="SELECT adjuntos.id_usuario, adjuntos.id_mensaje, adjuntos.nombre, adjuntos.ruta FROM adjuntos WHERE adjuntos.proyecto = '$id_proy'";
$res_proyecto mysql_query($sql_proyecto,$dbh) or die (mysql_error());


while (
$row_proyecto mysql_fetch_array($res_proyectoMYSQL_NUM)) 
{

$sql_usuarios "SELECT usuario.nombre FROM usuario WHERE usuario.id = $row_proyecto[0] ORDER BY usuario.nombre";
$res_usuarios mysql_query($sql_usuarios,$dbh);
$row_usuarios mysql_fetch_array($res_usuariosMYSQL_NUM);

?>

<table width="650" border="0" cellspacing="0" style="margin-left:128px">
  <tr>
    <td width="616">
     
      <div align="left" class="style19">
        
        <table width="559" border="1">
          
          
          
          <tr>
            <th width="355" scope="col"><span class="style11">
              <?
    $ruta_uno 
"$row_proyecto[3]";
    echo 
"<strong><a href='$ruta_uno'>".$row_proyecto[2]."</a></strong>";
    
    

?>
            </span></th>
            <th width="188" scope="col"><span class="style11">
              <?PHP

    
echo "<strong>".$row_usuario[0]."</a></strong>";
    
?>
            </span></th>
          </tr>
          
        </table>
    </div>
    <div align="left"></div>
    <div align="left"></div><div align="left"></div></td>
  </tr>
</table>


} // fin del while


?>

El problema es que....... Ahora no me muestra nada..


Que podra ser? ya me tiene enfermo este problema