data_user mysql_fetch_array mysql_query SELECT FROM users WHERE login

1
2
3
$data_user = mysql_fetch_array(mysql_query("SELECT * FROM `users` WHERE `login`='".$_SESSION['user']."'")) or die(mysql_error());
if($data_user['status'] == "Гонщик" or $data_user['status'] == "VIP"){
header("Location: ../index.php");