
<?php

$a=mysqli_connect("mysql12.000webhost.com","a2919482_us","kj12345","a2919482_na") or die ("cannaot connect".mysqli_errno().mysqli_error());
if (array_key_exists('check_submit', $_POST)) {
$_POST['Comments'] = nl2br($_POST['Comments']); }
if(!$a)
	echo "not connected";
else
	//echo "connected";
$p=$_POST['name'];
$b=$_POST['email'];
$c=$_POST['message'];

$query=mysqli_query($a,"insert into fd values('$p','$b','$c')");
 
?>
