
aqui el codigo con que muestro la nota guardada en la bd:
Código:
  
  <?php
include("php/conexionverif.php");
    $conexion = mysql_connect($host,$user,$pw) or die ("no se ha podido conectar a la BD");
    mysql_select_db($db,$conexion) or die ("no se ha podido seleccionar la BD");
	
    $sql = "SELECT * FROM cms_frontpage ORDER BY id DESC LIMIT 1";
	
    $consulta = mysql_query($sql) or die ("No se pudo ejecutar la consulta");
	While($registro = mysql_fetch_array($consulta))
	{	
		echo '<div sytle="width:100%;height:auto;text-align:center;">
<a href="http://www.gobernacionsd.comyr.com/actividades.php" style="text-align:center;color:black;">
<b style="margin-right:auto;margin-left:auto;text-align:center;">'.$registro["TITULO"].'</b><br /> 
<img src="php/'.$registro["file_path"].'" width="250px" height="200px" style="margin-left:auto;margin-right:auto;" alt="prin"> </a>
<div style="text-align:center;width:80%;margin-right:auto;margin-left:auto;">
<p style="text-align:justify;">'.$registro["CONTENIDO"].'...</p></div></div>';
	}
mysql_close($conexion);
	?>
 

