Помощь по скриптам | Не видит скрипт
<?
$ex_quest = mysql_result(mysql_query("SELECT COUNT(*) FROM `quest_user` WHERE `id_user` = '$user[id]' AND `status` = 'complate'"),0);
$new_quest = mysql_result(mysql_query("SELECT COUNT(*) FROM `quest_user` WHERE `id_user` = '$user[id]' AND `status` = 'inactive'"),0);
if(isset($_SESSION['new_quest'])){
unset($_SESSION['new_quest']);
}
elseif(isset($_SESSION['ex_quest'])){
?>
<td class="white" align="center" style="width:25%; border-right: solid 1px #00327e; vertical-align: bottom;"><a style="text-decoration: none; color: #fff" href="/dev/quest.php" title="Задания"><table><tbody><tr><td style="padding-right: 0px; text-align: right" width="90%"><img src="/style/img/quest-ico.png"></td><td style="padding-left: 0px; padding-right: 0px;"><table style="position: relative; top: -12px; right: -4px" width="24px" height="12px"><tbody><tr><td align="center" style="font-size: 9.0pt;padding-top: 0px; vertical-align: top; background: url(/style/img/ico_push_green.png) no-repeat;"><?=$new_quest?></td></tr></tbody></table></td></tr></tbody></table>заданиe</a></td>
<?
unset($_SESSION['ex_quest']);
}
elseif($new_quest==0){
echo "<td class='white' align='center' style='width:25%; border-right: solid 1px #00327e; vertical-align: bottom;'><a style='text-decoration: none; color: #fff' href='quest.php'><img src='/style/img/quest-ico.png'><br>задание</a></td>";
}else{
?>
<td class="white" align="center" style="width:25%; border-right: solid 1px #00327e; vertical-align: bottom;"><a style="text-decoration: none; color: #fff" href="/dev/quest.php"><table><tbody><tr>
<td style="padding-right: 0px; text-align: right" width="90%"><img src="/style/img/quest-ico.png"></td><td style="padding-left: 0px; padding-right: 0px;"><table style="position: relative; top: -12px; right: -4px" width="24px" height="12px"><tbody><tr>
<td align="center" style="font-size: 9.0pt;padding-top: 0px; vertical-align: top; background: url(/style/img/ico_push_green.png) no-repeat;"><?=$new_quest?></td></tr></tbody></table></td></tr></tbody></table>задание</a></td>
<?
}
?>