<html xmlns="http://www.w3.org/1999/xhtml"> 
<?php
error_reporting(0);
?>  
<head>
    <meta charset="utf-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1" />
	<meta http-equiv="Refresh" content="0; URL=nilai_k2.php"> 
    <meta name="description" content="" />
    <meta name="author" content="" />
    <!--[if IE]>
        <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
        <![endif]-->
    <title> KLASIFIKASI STATUS EKONOMI</title>
    <!-- BOOTSTRAP CORE STYLE CSS -->
    <link href="assets/css/bootstrap.css" rel="stylesheet" />
    <!-- FONTAWESOME STYLE CSS -->
    <link href="assets/css/font-awesome.min.css" rel="stylesheet" />
    <!-- PRETTYPHOTO STYLE CSS -->
    <link href="assets/css/prettyPhoto.css" rel="stylesheet" />
    <!-- CUSTOM STYLE CSS -->
    <link href="assets/css/style.css" rel="stylesheet" />    
    <!-- GOOGLE FONT -->
    <link href='http://fonts.googleapis.com/css?family=Open+Sans' rel='stylesheet' type='text/css' />

</head>
   
 <body> 
<?php
include 'koneksi.php';
			$nama=$_POST['nama'];
			$t1=$_POST['t1'];
			$t2=$_POST['t2'];
			$t3=$_POST['t3'];
			$t4=$_POST['t4'];
			 $sql9 = mysql_query("TRUNCATE TABLE databaru1");	
			$query = "INSERT INTO databaru1(nama,t1,t2,t3,t4) VALUES('$nama','$t1','$t2','$t3','$t4')";
			   $hasil = mysql_query($query);
			?>
			   </body></html>