<?
//replace username and password with your mysql name and password

//select the database
include "../include/db.php";
$msg = $_POST["sms"];
$D1 = $_POST["D1"];

//insert the values
$result= mysqli_query($db, "INSERT INTO sms (msg, m_type)".
   "VALUES ('$msg', '$D1')")or die ("<b><center>yes,
 <br>its already Found in our Database.<br>
a href='javascript: history.go(-1)'>
Go Back << </a><b><br>");
?>