I am attempted to check the database for a varchar "race" and if it's null redirect to a page. this is my code, ive made sure that the var is null yet it does nothing even upon reloading how do i make php redirect
<?php
$check_bone_query = mysql_query("SELECT bone FROM users WHERE name = '".$user->name."'");
{
if($check_bone_query == NULL){
header('Location: /bone');
}
` }
?>