$encrypted = md5($_POST[Password]);
$SQL_Exec_String = "Insert Into Person ( PersonID, Title, FamilyName, GivenName, PreferredName, Password, DateOfBirth, Mobile, DateExpired, FirstJoined) Values ( $PersonID, '$_POST[Title]', '$_POST[Surname]', '$_POST[FirstName]', '$_POST[Preferred]', $encrypted,'$_POST[BirthDate]', '$_POST[Mobile]', date()+(365*5) , date())";
basically the query that's going awry, before I had the md5 in there I had it like all the others and it worked perfectly