Any Idea what's wrong? I have spent hours looking at this and can't see it. The connection is fine.
$DB = new mysqli("127.0.0.1", "Account Here", "Password Here", "DB Here", "Port");
$query = $DB->prepare("INSERT INTO `Users`(`FirstName`, `LastName`, `Email`, `UserName`, `UserNameHash`, `PasswordHash`, `PasswordSalt`) VALUES (?, ?, ?, ?, ?, ?, ?)");
$query->bind_param("sssssss", $FirstName, $LastName, $Email, $Username, $EUsername, $EPassword, $Salt);
if($query->execute()){
echo "executed <BR />";
}else{
echo "Failed <BR />";
}
$query->close();
mysqli_close($DB);
echo "complete";
Output:
Failed
Complete
it has been suggested I enable errors, which are enabled, and remove the If statement this is the output when I do:
Complete