View file answer/index.php

File size: 617B
<?php

# Coding by LinX
# ICQ 339890

$act = isset($_GET['act']) ? $_GET['act'] : null;

switch ($act){
    case 'in':
    
    break;
    default:
    s_header('Вопрос-ответ');
    echo '<div class="gt">Вопросы и ответы</div><div class="cont">';
    $end = mysql_result(mysql_query("SELECT COUNT(*) FROM `questions` WHERE `inactive` = '1'"),0);
    
    if ($end){
        echo '<a href="'. MYURL .'quans/answered">Отвеченные вопросы</a><hr />';
    }
    
    $all = mysql_result(mysql_query(),0);
    
    
    echo '</div>';
    s_footer();
}
?>