require_once("includes/config.php"); ?>
if (!isset($_GET['id'])){
$sql=mysql_query("SELECT * FROM news",$conexion);
}else{
$id=$_GET['id'];
$sql=mysql_query("SELECT * FROM news WHERE id='".$id."'",$conexion);
}
?>
echo mysql_result($sql, 0, "titulo")?>
echo mysql_result($sql, 0, "fecha")?>
echo mysql_result($sql, 0, "noticia")?>