while ($row = mysql_fetch_array($getcourse_res)) { echo "<option>{$row['r_subjid']}</option>"; } echo "</select> "; ?> <input type='submit' value='Statistics' name ='btnstat1' class='style6' align='center' onclick='return emptyId()'/> </p> </td> </tr> </table> </form> <?php echo "\n</td>\n </tr>\n</table> "; if (isset($_POST['btncheck1'])) { $res = new Examination(); $res->checkResultByStudent(); } elseif (isset($_POST['btnstat1'])) { $res = new Examination(); $res->checkResultStatistics(); } } else { if (isset($_SESSION['users']['lectName'])) { ?> <br /> <p>In this page you can see examination results of students of the relevant subjects and some statistics.</p> Click on check results to see the results and to get statistics click on statistics button. <form method="post" name="frmresult" action="<?php $_SERVER['PHP_SELF'];