{% else-1 %}
(28 фев 2016, 21:46) (0/0) [0]
if($stat['data'][$id->data[0]->account_id]['statistics']['all']['wins'] < 100) $stata = "<font color='red'>".$stat['data'][$id->data[0]->account_id]['statistics']['all']['wins']."</font>';
else $stata = "<font color='green'>".$stat['data'][$id->data[0]->account_id]['statistics']['all']['wins']."</font>';

echo "<tr><td>Количество побед</td><td>".$stata."</td></tr>";
Добавлено 28.02.16 в 21:51:24:
Вариант по легче
$stata = $stat['data'][$id->data[0]->account_id]['statistics']['all']['wins'];
echo "<tr><td>Количество побед</td><td>".($stata < 100 ? '<font color="red">'.$stata.'</font>' : '<font color="green">'.$stata.'</font>')."</td></tr>";
  • 1 из 1