Sir,
I am not Good at Php, I didn't get in what you said above, moreover I also didn't coded that, I watched a tutorial and than written that code
But I can see there is an error in this Code, Can you please check it where the mistake is ?
And where to add mysql_error() in the code to check the error ?
$query=" INSERT INTO `users` VALUES ('','".mysql_real_escape_string($username)."','".mysql_real_escape_string($password_hash)."','".mysql_real_escape_string($firstname)."','".mysql_real_escape_string($surname)."')";
if($query_run=mysql_query($query))
{
header('Location: register_success.php');
}
else
{
echo "Failed to Register you This time";
}