Loading...
я не могу понять в чем проблема
код

if ($search_user['clan'] == "0" and $search_user['id'] != $user['id'] and $user['clan_zvanie']>3 and $search_user['lvl']>4)
{echo'<a class="block d_block" href="/clans/prigl?id='.$search_user['id'].'"><span class="block2 bold c13"><img width="42px" src="/images/msg_send.png" alt="" /> Пригласить в клан</span></a>';}
index.php.zip 2.0 Kb ⬇ 100
вот
del
________
посл. ред. 08.05.2018 в 22:16; всего 1 раз(а); by simple_php
WarKing (08.05.2018 в 22:13)
я не могу понять в чем проблема
код

if ($search_user['clan'] == "0" and $search_user['id'] != $user['id'] and $user['clan_zvanie']>3 and $search_user['lvl']>4)
{echo'<a class="block d_block" href="/clans/prigl?id='.$search_user['id'].'"><span class="block2 bold c13"><img width="42px" src="/images/msg_send.png" alt="" /> Пригласить в клан</span></a>';}

Написано же
Неизвестная переменная search_user, строка 85
Master zpank , то есть?
WarKing , if($search_user['clan'] == 0 делай так без ковычек
а лучше так
if($user['clan'] == 0 and $user
['id'] != $user['id'] && $user['clan_zvanie']>3 and
$user['lvl']>4){
echo'<a class="block d_block" href="/clans/prigl?
id='.$user['id'].'"><span class="block2 bold
c13"><img width="42px" src="/images/
msg_send.png" alt="" /> Пригласить в клан</
span></a>';
}
Web_Master , вылезло еще больше ошибок
так делал ?
if($user['clan'] == 0 and $user
['id'] != $user['id'] and $user['clan_zvanie']>3 and
$user['lvl']>4){
echo'<a class="block d_block" href="/clans/prigl?
id='.$user['id'].'"><span class="block2 bold
c13"><img width="42px" src="/images/
msg_send.png" alt="" /> Пригласить в клан</
span></a>';
}
Web_Master , ошибка исчезла кнопки нету
Онлайн: 2
Время:
Gen. 0.0939
(c) Bym.Guru 2010-2026