Ver Mensaje Individual
  #7 (permalink)  
Antiguo 15/11/2008, 17:48
infoportal
 
Fecha de Ingreso: abril-2002
Ubicación: las condes
Mensajes: 184
Antigüedad: 22 años, 1 mes
Puntos: 1
Respuesta: ver.php aroja un error en el row

de un php <style type="text/css">
.titulo{COLOR: #000000; FONT-SIZE: 12px; FONT-WEIGHT: bold; FONT-FAMILY: Arial,Helvetica,sans-serif;}
.categoria{COLOR: #000000; FONT-SIZE: 11px; FONT-FAMILY: Arial,Helvetica,sans-serif;}
.contenido{BACKGROUND: none; COLOR: #000000; FONT-SIZE: 10px; FONT-WEIGHT: bold; FONT-FAMILY: Verdana, Helvetica; TEXT-DECORATION: none}
A:link {BACKGROUND: none; COLOR: #000000; FONT-SIZE: 11px; FONT-FAMILY: Verdana, Helvetica; TEXT-DECORATION: none}
A:active {BACKGROUND: none; COLOR: #000000; FONT-SIZE: 11px; FONT-FAMILY: Verdana, Helvetica; TEXT-DECORATION: none}
A:visited {BACKGROUND: none; COLOR: #000000; FONT-SIZE: 11px; FONT-FAMILY: Verdana, Helvetica; TEXT-DECORATION: none}
A:hover {BACKGROUND: none; COLOR: #000000; FONT-SIZE: 11px; FONT-FAMILY: Verdana, Helvetica; TEXT-DECORATION: underline}
</style>
<?
/*revisa siempre antes de ver las noticias si la codificacion o charset= este en iso-8859-1. eso */
$conn = mysql_connect("localhost","fci1","mm");
mysql_select_db("funbosco");
$q = mysql_query("SELECT id, imagen, breve_texto, titulo, color FROM articulos WHERE mostrar='home' ORDER BY id DESC LIMIT 2 ");
while($res = mysql_fetch_row($q)){
?>
</font>
<table bgcolor="<?=$res[4]?>" border="0">
<tr>
<td class="titulo" align="center" colspan="2"><h3>
<?=$res[3]?>
</h3></td>
</tr>
<tr>
<? if (!empty($res[1])){?>
<td width="110" height="110"><h3><a href="javascript:ventanaSecundaria('ver.php?id=<?= $res[0]?>')"> <img src="<?=$res[1];?>" alt="" width="110" height="110" border="0" align="left" /> </a> </h3></td>
<?}?>
<td class="contenido" valign="top" align="center"><h3>
<?=substr($res[2],0,190)?></h3></td>
</tr>
<tr>
<td class="categoria" align="right" colspan="2"><h3>&nbsp;</h3></td>
</tr>
</table>
<p>
<?}mysql_close($conn);?>
__________________
Juan Pablo Sánchez