I got most of this from a friend and out of a book... If any of you can see my problem that would be wonderful.
<?
error_reporting(E_ALL);
$auth = $POST["auth"];
$story = $POST["story"];
if (!$auth || !$story) {
echo "<center>You did not fill out everything!</center>";
exit;
}
else {
$database = mysql_connect("localhost", "user", "pass") or die("Could not connect to the database!);
mysql_select_db("akujin") or die("Cannot select the database!!");
$query = "INSERT INTO stories values ('".$auth."', '".$story."')";
$result = mysql_query($query);
if ($result) {
echo "<center>Thank you for submitting your story</center>";
}
}
?>
note: pass and user have been changed from there origional to summit else