I should have mentioned before that the above code is not all that i have.
This is all of it:
<?php
// Create php connection
$connection = mysql_connect("*****","*****","****");
// If no connection is established, error message.
if (!$connection)
{
die("Error: Could not connect to host. Reason: " . mysql_error());
}
mysql_select_db("bliss510_social", $connection);
$sql = "INSERT INTO account (Username, FirstName, LastName, DateofBirth, Email, HearAbout, Recommended, FriendUser) VALUES ('$_POST[username]','$_POST[fname]','$_POST[lname]','$_POST[day]' . - . '$_POST[month]' . - . '$_POST[year]','$_POST[email]','$_POST[hear]',$_POST[recom]',$_POST[fusername]')";
if (!mysql_query($sql, $connection))
{
die('Error: ' .mysql_error());
}
echo "1 record added";
mysql_close($connection)
?>