[code]<?php if( $user['time_user']>=1) {
if (isset($_GET['go']))mysql_query("UPDATE `user` SET `time_user` = '0' WHERE `id` = '$user[id]' LIMIT 1"
;
echo "<form method='post' action='/time/index.php?&go'>";
echo "<input class='button' type='submit' value='Откл время' /></form>n";
}
else
{
if (isset($_GET['go']))mysql_query("UPDATE `user` SET `time_user` = '1' WHERE `id` = '$user[id]' LIMIT 1"
;
echo "<form method='post' action='/time/index.php?&go'>";
echo "<input class='button' type='submit' value='включить время' /></form>n";
} ?> [/code]