{% else-1 %}
Artemm * 0.03
(2 апр 2014, 21:00) (0/0) [0]
Не работает код $tanks_code правильно прописана

if(isset($_GET['zak'])){
if(isset($_GET['id'])){
mysql_query("UPDATE `tanks_tournament` SET `konec`='2' WHERE `id`='".$_GET['id']."' "*;
$tourka= mysql_query("SELECT * FROM `tanks_tournament` where `id`='".$_GET['id']."'"*;
$tour_win= mysql_query("SELECT * FROM `tanks_tournament_users` where `tour`='".$tourka['id']."' ORDER BY win DESC LIMIT 5"*;
while($tour_wins = mysql_fetch_array($tour_win)) {

mysql_query("UPDATE `tanks` SET `zolota`=`zolota`+'".$tourka['zolota']."',`rating`=`rating`+'".$tourka['rating']."',`tour`='0' WHERE `id`='".$tour_wins['user']."'"*;
mysql_query("UPDATE `tanks_tournament_users` SET `vkl`='1' WHERE `id`='".$tour_wins['user']."' "*;

}

header ("Location :adminka?tour"*;
}}
  • 1 из 1