Ver Mensaje Individual
  #5 (permalink)  
Antiguo 12/11/2007, 03:10
Avatar de ronnyalfonzo
ronnyalfonzo
 
Fecha de Ingreso: julio-2007
Ubicación: Maracaibo
Mensajes: 76
Antigüedad: 16 años, 9 meses
Puntos: 1
Re: dudas sobre area de texto (text area) y saltos de linea

este es parte del codigo del archivo con el cual quiero mostrar los datos de la tabla, no pongo todo el archivo por que es el index y tenine muchas cosas asi que solo tome parte de el


<style type="text/css">
<!--
.Estilo9 {color: #FFFFFF}
.ver10 {font-family: Verdana, Arial, Helvetica, sans-serif;
font-size: 10px;
text-decoration: none;
color: #000000;
}
-->
</style>
<table cellspacing="0" cellpadding="0" width="552" align="center" border="0">
<tbody>
<tr>
<td colspan="3" height="10">&nbsp;</td>
</tr>
<tr>
<td colspan="3" height="10"><? //conecto con la base de datos
include ('php/conexion.php');

mysql_select_db('$sql_db',$conexion);

$num_displayed = 4 ;

$sql_db = "SELECT * FROM productos ORDER BY RAND() LIMIT $num_displayed";

$resultid = mysql_query($sql_db,$conexion);
?>
<?

$num_filas = 0;
while ($damefila=mysql_fetch_object($resultid))
while ($damefila2=mysql_fetch_object($resultid))
while ($damefila3=mysql_fetch_object($resultid))
while ($damefila4=mysql_fetch_object($resultid))
{
?></td>
</tr>
<tr>
<td valign="top" width="233">&nbsp;</td>
<td width="2"></td>
<td valign="top" width="233">&nbsp;</td>
</tr>
<tr>
<td colspan="3" height="10"></td>
</tr>
<tr>
<td valign="top" width="233">&nbsp;</td>
<td width="2"></td>
<td valign="top" width="233"><table border="0" cellpadding="0" cellspacing="0">
<tbody>
<tr>
<td>&nbsp;</td>
<td width="231" height="30" bgcolor="#76C409" class="blanco">&nbsp;<span class="Estilo9"><font face="Arial" size="2"><?echo strip_tags($damefila->nombre)?></font></span></td>
<td>&nbsp;</td>
</tr>
<tr>
<td width="231" colspan="3" valign="top"><table border="0" cellpadding="0" cellspacing="0">
<tbody>
<tr>
<td colspan="3" height="6"></td>
</tr>
<tr>
<td valign="top" align="middle" width="100"><img src="rd.php?imagen=<?echo strip_tags($damefila->foto)?>" border="0" align="left" /></td>
<td valign="top" width="23">&nbsp;</td>
<td width="110" valign="top"><span class="ver10"><font face="Arial" size="2"><?echo nl2br($damefila->mini_descrip)?></font></span></td>
</tr>
<tr>
<td colspan="3" height="5"></td>
</tr>
<tr>
<td bgcolor="#58a807" colspan="3" height="1"></td>
</tr>
<tr>
<td colspan="3" height="5"></td>
</tr>
<tr>

</tr>
</tbody>
</table></td>
</tr>
</tbody>
</table>
<?
$num_filas++;
} //termina el bucle while
?></td>
</tr>
</tbody>
</table>


gracias por la ayuda que puedan aportar