<?php
$from = $_POST['from'];
$to = $_POST['to'];
$subject = $_POST['subject'];
$date = date("d/m/y");
$body = $_POST['text'];
$query = "INSERT INTO `accountdata`.`mail` VALUES (NULL, \'$from\', \'$to\', \'$subject\', \'$body\', \'$date\', NULL);";
$usern = "******";
$passw = "***";
$database = "******";
mysql_connect(localhost,$usern,$passw);
@mysql_select_db($database) or die( "Unable to select database");
mysql_query($query);
mysql_close();
echo "<br> Message sent!! <br>";
?>
This also happened with my account system... I inserted the echo parts mainly so i knew what was happening... strangly it prints out all the tags and no errors, so i check my database no luck...Using phpMyAdmin bye the way.


Sign In
Create Account


Back to top









