Ver Mensaje Individual
  #1 (permalink)  
Antiguo 13/06/2008, 23:00
Avatar de ronnyalfonzo
ronnyalfonzo
 
Fecha de Ingreso: julio-2007
Ubicación: Maracaibo
Mensajes: 76
Antigüedad: 17 años, 7 meses
Puntos: 1
se muesta bien en explorer pero en firedox no

Hola saludos, tengo problema la verdad soy novato y un amigo mio me hizo este codigo el cual entiendo a medias y por eso recurro a su infinita sabiduria

el siguiente codigo funciona de maravilla en explorer, este codigo contruye 4 tablas y trae los datos desde una base de datos mysql, pero a la hora de verlo en firefox las tabla se me deforman se ponen tan anchas como el texto que cargen de la base de datos y la verdad no se donde puede estar el error

me dan una mano por favor...

Código PHP:
include ('php/conexion.php');
$income=array(390,574,665,673,34,56,78); 
$contcount($income);
$a=$b=$c=$d=2;
while(!(
$a!=$b && $b!=$c && $c!=$d && $d!=$b && $d != $a && $a != $c))
{
$a rand(0,$cont-1);
$b rand(0,$cont-1);
$c rand(0,$cont-1);
$d rand(0,$cont-1);
}
$nv=array();
$nv[].=$income[$a];
$nv[].=$income[$b];
$nv[].=$income[$c];
$nv[].=$income[$d];
for(
$w=0;$w<count($nv);$w++)
{
$cadena.=",$nv[$w]";
}
$cadena=substr($cadena,1);
$sql="select * from productos where id in ($cadena) order by nombre";
$eje=mysql_query($sql);
echo 
"<br>";
echo
'';
$cuna=0;
while(
$asd=mysql_fetch_array($eje))
{
if (
$cuna == 0)
{
echo
'<table width="80%" height="155" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<th width="43%" height="72" scope="col">
<table width="200" height="210" border="0" cellpadding="0" cellspacing="0">
<tbody>
<tr>
<td height="25"><img height="25" alt="" src="imagenes/m19.gif" width="5" border="0" /></td>
<td width="231" bgcolor="#587308" class="blanco">'
.strtoupper($asd[4]).'</td>
<td><img height="25" alt="" src="imagenes/m21.gif" width="5" border="0" /></td>
</tr>
<tr>
<td width="231" colspan="3" valign="top"><table width="213" height="185" border="0" cellpadding="0" cellspacing="0">
<tbody>
<tr>
<td colspan="3" height="6"></td>
</tr>
<tr>
<td width="140" height="140" align="center" valign="top" nowrap="nowrap">'

$patch=opendir('./imagenesupload/');
$archivo2 $asd[8];
$entry =$archivo2;
$ROOT ='imagenesupload/'.$entry;
if (
file_exists($ROOT)) 
{
echo 
"<img src=\"imagenesupload/rd.php?imagen=$archivo2\">";

else 
{
echo 
"<img src=\"imagenesupload/rd.php?imagen=imagennodisponible.jpg\">";

echo
'
</td>
<td valign="top" width="22">&nbsp;</td>
<td width="122" height="125" valign="top" nowrap="nowrap" class="ver10">'
.substr($asd[6],0,150).'...</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>
<td align="middle" colspan="3" height="40"><div align="right"><img height="1" alt="" src="imagenes/spacer.gif" width="10" border="0" /><a href="listadeproductos.php?id='
.$asd[0].'"><img height="25" alt="" src="imagenes/boton_detalles.jpg" width="74" border="0" /></a></div></td>
</tr>
</tbody>
</table></td>
</tr>
</tbody>
</table>
</th>
<th width="15" scope="col">&nbsp;&nbsp;&nbsp;&nbsp;</th>'
;
}
if(
$cuna == 1)
{
echo 
'<th width="47%" scope="col" valign=top>
<table width="200" height="210" border="0" cellpadding="0" cellspacing="0">
<tbody>
<tr>
<td height="25"><img height="25" alt="" src="imagenes/m19.gif" width="5" border="0" /></td>
<td width="231" bgcolor="#587308" class="blanco">'
.strtoupper($asd[4]).'</td>
<td><img height="25" alt="" src="imagenes/m21.gif" width="5" border="0" /></td>
</tr>
<tr>
<td width="231" colspan="3" valign="top"><table width="213" height="185" border="0" cellpadding="0" cellspacing="0">
<tbody>
<tr>
<td colspan="3" height="6"></td>
</tr>
<tr>
<td width="140" height="140" align="center" valign="top" nowrap="nowrap">'

$patch=opendir('./imagenesupload/');
$archivo2 $asd[8];
$entry =$archivo2;
$ROOT ='imagenesupload/'.$entry;
if (
file_exists($ROOT)) {
echo 
"<img src=\"imagenesupload/rd.php?imagen=$archivo2\">";

else
{
echo 
"<img src=\"imagenesupload/rd.php?imagen=imagennodisponible.jpg\" >";

echo
'</td>
<td valign="top" width="22">&nbsp;</td>
<td width="122" height="125" valign="top" nowrap="nowrap" class="ver10">'
.substr($asd[6],0,150).'...</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>
<td align="middle" colspan="3" height="40"><div align="right"><img height="1" alt="" src="imagenes/spacer.gif" width="10" border="0" /><a href="listadeproductos.php?id='
.$asd[0].'"><img height="25" alt="" src="imagenes/boton_detalles.jpg" width="74" border="0" /></a></div></td>
</tr>
</tbody>
</table></td>
</tr>
</tbody>
</table>
</th></tr></table><br>'
;
$cuna=-1;
}
$cuna++;

Gracias por su tiempo