{% else-1 %}
Shot_ * 7.61
(6 апр 2014, 19:46) (0/0) [0]
HellArch, тоже все будет))
Shot_ * 7.61
(6 апр 2014, 19:39) (0/0) [0]
HellArch, ой, точно, не то
Добавлено 06.04.14 в 19:42:02:
<?php

require_once 'tmp/func.php';



$sql = mysql_query("SELECT `id` FROM `users`"*;



while($a = mysql_fetch_array($sql)) {

if($a['war'] <= 10) {

mysql_query("UPDATE `users` SET `war` = `war` + 1 WHERE `id` = '$a[id]'"*;



}

}



?>

а так?
Shot_ * 7.61
(6 апр 2014, 19:36) (0/0) [0]
<?php
require_once 'tmp/func.php';

$sql = mysql_query("SELECT `id` FROM `users`"*;

while($a = mysql_fetch_array($sql)) {
if($a['war'] <= 10) {
mysql_query("UPDATE `users` SET `war` = `war` + 1 WHERE `id` = '$user[id]'"*;

}
}

?>

попробуй
Shot_ * 7.61
(6 апр 2014, 19:27) (0/0) [0]
крон не юзер, user не прокатит
Shot_ * 7.61
(6 апр 2014, 19:22) (0/0) [0]
так попробуй
<?php require_once 'tmp/func.php';
mysql_query ("UPDATE `users` SET `war` = `war` + 1 WHER [id]'"*; ?>
  • 1 из 1