Ver Mensaje Individual
  #1 (permalink)  
Antiguo 15/06/2007, 17:22
Alejandr4
 
Fecha de Ingreso: diciembre-2006
Mensajes: 111
Antigüedad: 17 años, 4 meses
Puntos: 1
No saca bienlos resultados

Hola a todos, tengo un problema, tengo una tabla: adopta con los campos codigo, nombre, sexo, edad, imagen_p, imagen_g, entrada, historia y urgente.
y tengo tres productos metidos, quiero que los saque y he hecho lo siguiente y solo me saca el segundo y el tercero, el primero se lo salta.

Os lo pego aquí abajo a ver que os parece y simepodeis ayudar

Muchas gracias

Un saludo

Alejandra



<?
$conn = mysql_connect("lldb499.servidoresdns.net","****"," *****")

or die ('Lo sentimos, no se pudo establecer la conexi&oacute;n');
mysql_select_db("qbr261",$conn)

or die ('Lo sentimos, no se pudo establecer la conexi&oacute;n');

$ssql = "select * from adopta";

$resultid = mysql_query($ssql,$conn)

or die ("Fallo en la consulta");
if ($linea=mysql_fetch_object($resultid)) {

?>
<td bgcolor="#F5F5FF">
<table width="100%" border="0" align="center" cellpadding="1" cellspacing="0">
<tr>
<td><marquee id="marquee1" onMouseOver="marquee1.stop();" onMouseOut="marquee1.start()" direction="up" scrollAmount="1.7" height="150">
<table width="100%" height="100" border="0" align="center" cellpadding="2" cellspacing="0">
<?
while ($linea = mysql_fetch_object($resultid)){
?>
<tr>
<td width="140" rowspan="2" align="center" valign="middle"><a href="urgentes.php" target="contenido" onMouseOver="window.status='<? echo $linea->nombre;?>';return true" onMouseOut="window.status=' '">
<img src="<? echo $linea->imagen_p;?>" alt="<? echo $linea->nombre;?>" border="0"></a></td>
<td align="left"><a href="urgentes.php" class="sexto" target="contenido" onmouseover="window.status='<? echo $linea->nombre;?>';return true" onmouseout="window.status=' '"><? echo $linea->nombre;?></a></td>
</tr>
<tr>
<td align="left"><a href="urgentes.php" target="contenido" onMouseOut="window.status=' '" onMouseOver="window.status='<? echo $linea->nombre;?>';return true"><? echo $linea->entrada;?></a></td>
</tr>
<tr height="1">
<td height="20" colspan="2" align="center"><table width="100%" height="1" border="0" cellpadding="0" cellspacing="0">
<tr>
<td height="1" bgcolor="#CC9933"><img src="../imag/pix.gif" width="1" height="1"></td>
</tr>
</table></td>
</tr>

<?php
$num_filas++;
}
?>
</table>
</marquee></td>
</tr>
</table>
</td>
<?
}
else{
?>
<td bgcolor="#F5F5FF">&nbsp;</td>
<?php
}
mysql_free_result($resultid);
mysql_close($conn);
?>