session_start();
if (!isset($_SESSION['uid'])) {
header("Location: index.php");
}
include("config.php");
?>
Ещё один БК...
$my_us = mysql_fetch_assoc(mysql_query("SELECT `enter_game`, `id` FROM `users` WHERE `id` = '" . $_SESSION['uid'] . "' LIMIT 1"));
if ($my_us['enter_game'] == 1) {
$my_us['enter_game'] = 0;
mysql_query("UPDATE `users` SET `enter_game` = '" . $my_us['enter_game'] . "' WHERE `id` = '" . $my_us['id'] . "' LIMIT 1");
?>
} ?>