Location: PHPKode > scripts > M-Ariza Maintenance Follow-up Web Application > m-ariza-maintenance-follow-up-web-application/mariza/admin/addrecord.php
<?
session_start();
include "../inc/logincheck.php";
include "../inc/conn.php";
if (!is_numeric($_POST['fisno'])){
			echo"<script> alert(\"Wrong Token Number Try Again!\"); history.back(1);</script>";exit;
}
$checkdate=explode('.',$_POST['gelistarihi']);
		if (!checkdate($checkdate[1],$checkdate[0],$checkdate[2])){echo"<script> alert(\"YOu Entered Wrong Date!\"); history.back(1);</script>";exit;}
$stamp=mktime(0,0,0,$checkdate[1],$checkdate[0],$checkdate[2]); 
$sql="INSERT INTO arizalar (firma,teslimeden,serino,fisno,urunadi,markamodel,gelistarihi,aciklama,ilgili,telefon,durum,teslimtarihi)
VALUES ('{$_POST['firma']}','{$_POST['teslimeden']}','{$_POST['serino']}','{$_POST['fisno']}','{$_POST['urunadi']}','{$_POST['markamodel']}','{$stamp}','{$_POST['aciklama']}','{$_POST['ilgili']}','{$_POST['telefon']}','Faulty','')";
if(mysql_query($sql)){
		echo "<script>location.href='records.php?msg=1';</script>";exit;
	}else{
		echo "<script>location.href='records.php?msg=4';</script>";exit;
	}
?>
Return current item: M-Ariza Maintenance Follow-up Web Application