Maybe this sounds odd, but I have the feeling I am doing something wrong in my code. I did test it locally and it worked fine, however, when I try to send the data online, it doesn’t get entered into the database. I don’t know what I am doing wrong at the moment, and I can’t see the error (might have looked to much to the code or something like that). Sometimes a fresh look might help better.
The HTML:
<form method="post" class="signin" action="inc/actions/processing.php">
<fieldset class="textbox">
<label class="username">
<span>Username</span>
<input id="username" name="username" value="" type="text" autocomplete="off" placeholder="username">
</label>
<label class="charactername">
<span>Charactername</span>
<input id="charactername" name="charactername" value="" type="text" autocomplete="off" placeholder="Your character's first name">
</label>
<label class="password">
<span>Password</span>
<input id="password" name="password" value="" type="password" placeholder="Password">
</label>
<button class="submit button" name="RegisterUser" type="submit">Register User</button>
</fieldset>
</form>
The PHP, processing part:
if(isset($_POST['RegisterUser'])){
$Username = $_POST['username'];
$Pass_nomdf5 = $_POST['password'];
$Password = md5($Pass_nomdf5);
$Charactername = $_POST['charactername'];
RegisterMember($Charactername,$Username,$Password);
CloseConnection();
header( "Location: http://" . strip_tags( $_SERVER ['HTTP_HOST'] ) . "/newHolo/" );
exit;
}
The PHP for the RegisterMember function:
function RegisterMember($Charactername,$Username,$Password){
$query = "INSERT INTO User(CharacterFname,Username,Password) VALUES ('".$Charactername."','".$Username."','".$Password."');";
SendQuery($query);
}
I ran it over quite a few times, but I have the feeling it’s a setting in my database that screws me. I switched all the NOT_NULLs to NULLs, except for the ID fields (see pic of database table below).

I am just not sure where my error is, cause locally it ran fine before i uploaded it. I did run though on an older version of PHP, and I have a feeling it might have to do with that as well. Can anyone help me out here?
As i stated above, it was an sql error that came back, and had indeed nothing to do with my code. I cleared the error message, when I noticed that I didnt fill in any data yet into the datafields of Sgroup.
Dumb, I should have known that if i have a constraint on a field, It should be at least filled with the data. So, i filled up that table, and voila, that did the trick. Thanks for your input people.