{% else-1 %}
(21 дек 2015, 10:26) (0/0) [0]
Fridrix, бред *
(21 дек 2015, 10:21) (0/0) [0]
[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]
  • 1 из 1