Ver Mensaje Individual
  #1 (permalink)  
Antiguo 18/03/2005, 05:03
infoportal
 
Fecha de Ingreso: abril-2002
Ubicación: las condes
Mensajes: 184
Antigüedad: 22 años
Puntos: 1
Ver. Articulo

tengo un sistema de articulos en php y mysql nesesito que al ingresar a ver.php me muestre el articulo completo.

hasta ai todo bien el problema es que el ver.php que tengo no me funciona

el codigo es el siguiente

ver.php

<?



$conn = mysql_connect("localhost","","");



mysql_select_db("");



$q = mysql_query("SELECT cabezera, titulo, resumen, Noticia, imagen, autor, fecha, url FROM articulos WHERE id=$id");



$res = mysql_fetch_row($q);



$poema = split("\n",$res[3]);



echo "<table width=\"100%\" height=\"145\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\">
<tr>
<td height=0 valign=\"top\" bgcolor=\"#0269AD\"> <div align=\"center\"><font color=\"#FFCC00\" size=\"5\"><strong>$res[1]</strong></font><img src=\"$res[4]\" border=\"0\" align=\"right\"></div></td>
</tr>
<tr>
<td height=\"0\" valign=\"top\" bgcolor=\"#005088\"> <div align=\"center\"><font color=\"#FFCC00\" size=\"5\"></font></div></td>
</tr>
<tr>
<td height=\"0\" valign=\"top\" bgcolor=\"#0000FF\"> <p><strong><font color=\"#FFFFFF\">$res[2]</font></strong></p></td>
</tr>
<tr>
<td height=\"0\" valign=\"top\" bgcolor=\"#0099FF\"> <p align=\"right\"><font color=\"#FFFFFF\"><em>Fecha
de publicaci&oacute;n: $res[6]</em></font></p></td>
</tr>
<tr>
<td height=\"0\" valign=\"top\"> <p>$poema[$i]"; for($i=0;$i<count($poema);$i++)
echo "<font class=\"content\">$poema[$i]</font><br>
";
echo "</p></td>
</tr>
<tr>
<td height=\"0\" valign=\"top\" bgcolor=\"#666666\"><strong>Autor:</strong>
$res[5]<br>
<strong>Sitio Relacionado:</strong> <a href=\"$res[7]\" target=\"_blank\">$res[7]</a></td>
</tr>
</table>";



mysql_close($conn);



?>
__________________
Juan Pablo Sánchez