Try this code:
<?php
// ... init classes and whatnot...
if($user->logged != true)
{
$display->tpl('login_you_idiot');
}
// ... once the idiot logs in..
$db->query("UPDATE `status` SET `logged` = '1' WHERE `id = '{$user->id}'");
// where did $user->id come from? once the user logged in set the new values
// ...
?>
What you are asking for requires a full working member system thin
-- This message may have been cut off and the rest will only be shown to members. To become a member, click here --