<?php

include('ayar.php');

if ($_POST['kayit'])
{
	$baslik = mysql_escape_string($_POST['baslik']);
	$resim = mysql_escape_string($_POST['resim']);
	$ozet = mysql_escape_string($_POST['ozet']);
	$haber = mysql_escape_string($_POST['haber']);

	if (mysql_query("INSERT INTO haber VALUES ('','$baslik','$resim','$ozet','$haber')"))
		echo '<h1>Haber Kaydedildi</h1>';
	else
		echo '<h1>Haber Kaydı BAŞARISIZ - Bi Kaydı Bile Beceremedin :@</h1>';
}
?>