As I said on the home page I am still learning to code so the blog should be up and running soon.
$username="username"; $password="pwd"; $database="databasename"; $Comment=$_POST['Comment']; $Name=$_POST['Name']; mysql_connect(localhost,$username,$password); @mysql_select_db($database) or die( "Unable to select database"); $query = "INSERT INTO Comments VALUES (NOW(),'$Comment','$Name')"; if (!mysql_query($query)) { die('Error: ' . mysql_error()); } mysql_close(); echo "
"; $Comment = stripslashes($Comment); $Name = stripslashes($Name); echo "$Comment
" ?>
echo "$Name
"; ?>