<?
Include "config.php";
if ($_POST['pass'] == "[g]******[/g]" )
{
$nom_base = mysql_connect("$mysql_host", "$mysql_login", "$mysql_pass" ) or die("Le machin peut pas ce connecter à la base" );
mysql_select_db("$mysql_base",$nom_base);
$date = "time()";
$query = "INSERT INTO news VALUES ('$_POST[auteur]','$_POST[titre]','$_POST[news]','$date','')";
$result = mysql_query($query);
mysql_close($nom_base);
header("Location: index.php" );
}
?>
|