Ver Mensaje Individual
  #7 (permalink)  
Antiguo 24/10/2003, 06:00
Avatar de X3mdesign
X3mdesign
 
Fecha de Ingreso: octubre-2003
Ubicación: Madrid
Mensajes: 649
Antigüedad: 20 años, 7 meses
Puntos: 2
actualmente el código completo es este:

<?php
// campos de la tabla Cultura: id, Apartado, Parrafo, Imagen, Alineacion, pie_foto
echo "<p><a href=$PHP_SELF?seccion=Cultura>Seleccionar otro tema</a></p>";
$tema = $HTTP_GET_VARS["tema"];
$contenido = mysql_query ("SELECT `Apartado` FROM `Cultura` WHERE `id` = $tema") or die(mysql_error());
$datos = mysql_fetch_row ($contenido);
$apar = $datos[0];
$contenido = mysql_query ("SELECT * FROM `Cultura` WHERE 1 AND `Apartado` = `$apar` ORDER BY `id` ASC") or die(mysql_error());
while ($datos = mysql_fetch_row ($contenido)){
if ($apartado){ ?>
<p></p>
<table width="95%" align="center" border="0" cellspacing="0" cellpadding="5">
<tr>
<td bgcolor="#CC0000"><p><font color="#FFFFFF" face="Arial" size="2"><b><?php echo $datos[1]; $apartado=1; ?></b></font></p></td>
</tr>
</table>
<p></p>
<?php } ?>
<table width="95%" align="center" border="0" cellspacing="0" cellpadding="5">
<tr><td>
<p align="justify"><font size="2" face="Arial">
<?php
if ($datos[3]){
echo "<img src=../imagenes/Cultura/$datos[3] align=$datos[4] hspace=10 vspace=5 alt=$datos[5]>";
}
echo $datos[2]; ?>
</font></p>
</td></tr></table>
<p></p><?php } ?>



... y gracias por sumarte a la causa !!!
__________________
Nippon-Tour, tu portal sobre Japón
¿Te gusta el manga, haces tus propios dibujos? Visita FanArt de Nippon-Tour