Tema: 5 y cambio
Ver Mensaje Individual
  #8 (permalink)  
Antiguo 13/09/2007, 13:49
reimonfranco
 
Fecha de Ingreso: febrero-2006
Mensajes: 858
Antigüedad: 18 años, 2 meses
Puntos: 4
Re: 5 y cambio

HOLA, la verdad es que no se me ocurria nada y puse este codigo.. aver si funciona.. no lo he probado porque mi servidor esta fallando..

fotos.php



<table width="536" height="1706" border="0" cellpadding="0" cellspacing="0">
<!--DWLayoutTable-->
<tr>
<td height="108" colspan="3" align="left" valign="top"><table width="100%" border="0" cellspacing="0" cellpadding="0">
<!--DWLayoutTable-->
<tr>
<td width="520" height="14"></td>
</tr>
<tr>
<td height="46" valign="top"><div align="center">

<?
@$codigo = $_GET['codigo'];
@mysql_connect('localhost',bd','pass') or die('No se puede conectar con el servidor');
mysql_select_db("bd");
$codigo = $_GET['codigo'];
@mysql_select_db('fotos') or die('No se puede seleccionar la base de datos especificada');
$resultado = @mysql_query("SELECT imagen,tipo,id FROM subir_imagenes WHERE nombre = '$codigo'");
$width = 654;
?>
<table width='534' height='510' border='0' cellpadding='0' cellspacing='0'>
<tr>
<td height='19' colspan='2' align='left' valign='top'>

<table width='100%' border='0' cellspacing='0' cellpadding='0'>
<tr>
<td width='523' height='19' valign='top'> <div align='right'><a href='javascript:history.back()'>&lt;--
Atrás</a></div></td>
</tr>
</table></td>


<td width='36'></td>
</tr>
<tr>
<td width='16' height='281'>&nbsp;</td>
<td width='536' valign='top'>


<!--Esta-->
<table width='100%' border='0' cellpadding='0' cellspacing='0' bgcolor='#FFFFD2'>
<tr>
<td width='90' height='36'>&nbsp;</td>
<!--Parte-->
<?
$cols = 9;
?>
<td colspan='<?php echo $cols; ?>
' valign='top' bgcolor='#FFFFD2'>
<div align='center'>
<p align='center'><font size='2'><font size='2' face='Gill Sans MT'><font color='#000000' size='-1' face='Gill Sans MT'>
<br>
</font></font></font></p>
</div></td>
</tr>
<tr>
<td height='14'></td>
<td width='1'></td>
<td width='101'></td>
<td width='13'></td>
<td width='101'></td>
<td width='9'></td>
<td width='101'></td>
<td width='14'></td>
<td width='101'></td>
<td width='55'></td>
</tr>
<tr>
<?
//mostramos los registros
while ($row = mysql_fetch_array($resultado)) {
$cols = 9;
$nombre = $row["nombre"];
$id = $row["id"];
if ($cols >= 10) {
echo "<tr></tr>";
}
else {
echo "

<td height='107'></td>
<td colspan='6' valign='top'><a href='ver.php?id=$id'><img src='ver.php?id=$id' width='112' height='107' border='0'></a></td><br>
<td>&nbsp;</td>";
}
}
?>
</tr>
<tr>
<td height='17'></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
</tr>
<tr>
<td height='107'></td>
<td>&nbsp;</td>
<td valign='top'><!--DWLayoutEmptyCell-->&nbsp;</td>
<td>&nbsp;</td>
<td>&nbsp;</td>
<td>&nbsp;</td>
<td></td>
<td></td>
<td>&nbsp;</td>
<td>&nbsp;</td>
</tr>
</table>

SALUDOS... USTEDES CREEN QUE FUNCIONE... O QUE ME RECOMIENDAN?

SALUDOS Y GRACIAS
__________________
*La amistad se multiplica cuando se divide*