Código PHP:
<?
$host="localhost";
$user="root";
$password="ruben";
$db="libros";
$enlace = mysql_connect($host,$user,$password);
mysql_select_db("libros",$enlace);
$fecha = time();
if(empty($identificator))
{
$identificator=0;
}
$sql = "INSERT INTO noticias (autor, titulo, mensaje, fecha, identificador) VALUES ('$autor', '$titulo', '$mensaje', '$fecha', '$identificador') ";
mysql_query($sql2);
$resultado=mysql_query("SELECT '$noticia' FROM noticias WHERE noticia='$enlace);
while ($registro = mysql_fetch_row($resultado))
{
echo "<tr>;
foreach($registro as $clave)
{
echo "<td>",$clave,"</td>";
}
}
echo "<br><br>";
echo "<a href=index.php>volver a la web</a> </font>
</center>";
?>
; foreach($registro as $clave) { echo "",$clave,""; } } echo "
"; echo "volver a la web "; ?>
Gracias por sus respuestas