Ver Mensaje Individual
  #2 (permalink)  
Antiguo 13/11/2007, 05:35
patricia:)
 
Fecha de Ingreso: abril-2006
Ubicación: Venezuela
Mensajes: 126
Antigüedad: 18 años
Puntos: 0
Re: mostrar los datos de una bd mysql en una tabla

Buenos dias,

he cambiado la sintaxis de mi codigo, para poder crear la tabla vinculada posteriormente:
http://s1.subirimagenes.com/imagenes...30160tabla.jpg

<?
//conexion a la base de datos
include "conexion.php";
$result = mysql_query("SELECT * FROM 'contenido' where 'id_section'=2 ORDER BY DESC", $conexion);
$row = mysql_fetch_array($result);
?>
//insercion de los campos de la base de datos a la tabla, segun id_section=2
<th align="left" valign="top" scope="col"><table width="95%" border="0">
<tr>
<th height="30" colspan="2" align="left" valign="top" scope="col"></th>
<th width="117" height="30" align="left" valign="top" scope="col"><span class="estilo1 style19"><?=$row['Titulo']; ?></span></th>
<th width="56" height="30" align="left" valign="top" scope="col"><img src="FLECHA.gif" width="12" height="11" align="bottom" /></th>
</tr>
<tr>
<th width="1" height="20" align="left" valign="bottom" scope="col"><img src="MARCO.gif" width="6" height="6" /></th>
<th height="20" colspan="3" align="left" valign="bottom" scope="col"><strong class="estilo3 style19"><?=$row['Subtitulo']; ?></strong></th>
</tr>
<tr>
<td height="1" background="file:///C|/Documents and Settings/Aneida/Escritorio/paginas web/imagenes/trans.gif"><img src="file:///C|/Documents and Settings/Aneida/Escritorio/paginas web/imagenes/trans.gif" width="1" height="1" /></td>
<td height="1" colspan="2" background="pix1.gif"><img src="file:///C|/Documents and Settings/Aneida/Escritorio/paginas web/imagenes/trans.gif" width="1" height="1" /></td>
<td height="1" background="file:///C|/Documents and Settings/Aneida/Escritorio/paginas web/imagenes/trans.gif"><img src="file:///C|/Documents and Settings/Aneida/Escritorio/paginas web/imagenes/trans.gif" width="1" height="1" /></td>
</tr>
<tr>
<td width="1" height="65" align="left">&nbsp;</td>
<td height="65" colspan="3" align="left"><span class="estilo3"><?=$row['Texto']; ?></span></td>
<?
<? mysql_close($conexion); ?>
</tr>



por favor, alguien que me pueda ayudar!!

Última edición por patricia:); 13/11/2007 a las 08:11 Razón: No logro solucionar