Tema: ¿Que falla?
Ver Mensaje Individual
  #4 (permalink)  
Antiguo 28/12/2007, 20:01
Avatar de pato12
pato12
 
Fecha de Ingreso: septiembre-2007
Ubicación: Salta
Mensajes: 1.620
Antigüedad: 17 años, 4 meses
Puntos: 101
Re: ¿Que falla?

Para no postear tanto voy a aprobechar para postear algo.
Este es un codigo que me muestra todos los usuarios y quiero que me muestre uno debajo del otro.
Pero me los puestra todos seguidos.
quie esta el codigo:
Código PHP:
<table width="587" border="0" cellpadding="0" cellspacing="0">
  <!--DWLayoutTable-->
  <tr>
    <td width="587" height="21" valign="top" bgcolor="#333333"><table width="100%" border="0" cellpadding="0" cellspacing="0">
      <!--DWLayoutTable-->
      <tr>
        <td width="587" height="21" class="style3"><div align="center">Uusario</div></td>
      </tr>
    </table>    </td>
    <td width="587" valign="top" bgcolor="#333333"><div align="center" class="style3">Pais</div></td>
    <td width="587" valign="top" bgcolor="#333333"><div align="center" class="style3">Email</div></td>
  </tr>
<?php echo '<tr><td height="19" bgcolor="#F0F0F0"><span class="style4">'?>
   <?  
include ("config.php");
$resultComen mysql_query("SELECT * FROM users"); 
while(
$rowComen mysql_fetch_array($resultComen)) 

?> 
<? echo $rowComen["nick"]; ?><?php echo " </span></td><br>"?>
   <? echo ' <td bgcolor="#F0F0F0"><span class="style4">'?>
    <? echo $rowComen["pais"]; ?><? echo "</span></td><br>"?>
    <? echo "<td bgcolor='#F0F0F0'><span class='style4'>"?>
  <?
  $sino 
$rowComen["quiere"];
  
$email $rowComen["email"];
  
$no "No";
  if (
$sino == $no) {
  echo 
"El usuario no quiere mostrar su e-mail";
  } else {
  echo 
$rowComen["email"];
  }
  } 
mysql_free_result($resultComen); 
    echo 
"</span></td><br>";
      
?>
  </tr>
</table>
__________________
Half Music - www.halfmusic.com