
17/05/2005, 19:21
|
| | Fecha de Ingreso: abril-2002 Ubicación: las condes
Mensajes: 184
Antigüedad: 22 años, 11 meses Puntos: 1 | |
No pude hacerlo funcionar bueno trate y trate como pude pero no pude hacer que el if me funcione
aver si lo lograr hacer ustedes les dejo el codigo
<? $conn = mysql_connect("localhost","root","");
mysql_select_db("");
$q = mysql_query("SELECT id, imagen, resumen, titulo, categoria FROM articulos WHERE id ORDER BY id DESC LIMIT 2");
while($res = mysql_fetch_row($q)){
echo "<table width=\"400\" height=\"60\" border=\"0\">
<tr>
<td width=\"50%\" height=\"100\" bgcolor=\"#FFFF99\"><a href=\"javascript:ventanaSecundaria ('ver.php?id=$res[0]')\"><img src=\"(!empty($res[1]\" width=110 height=110 align=left border=\"0\"></a><font size=\"2\"><b><font color=\"#000000\" face=\"Arial, helvetica, sans-serif\">$res[3]</font><font face=\"Arial, helvetica, sans-serif\"><font color=\"#000000\"></font></font></b></font>
<font size=\"2\"><font color=\"#000000\" face=\"Arial, helvetica, sans-serif\"><br>
".substr($res['2'],0,190)."<a href=\"javascript:ventanaSecundaria ('ver.php?id=$res[0]')\">
:: más informacion ::</a></font></font></td>
</tr>
<td bgcolor=\"#FFFF99\">Categoria:$res[4]</td>
</tr>
</table>";
mysql_close($conn);
?>
__________________ Juan Pablo Sánchez |