Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at C:\AppServ\www\evaluation\index.php:2) in C:\AppServ\www\evaluation\index.php on line 2
Warning: Cannot modify header information - headers already sent by (output started at C:\AppServ\www\evaluation\authen.php:7) in C:\AppServ\www\evaluation\authen.php on line 57
ครับ
อันนี้ไฟล์ชื่อ semester
Code (PHP)
<?php session_start(); ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link rel="stylesheet" href="../css/global.css" charset="UTF-8" />
<title>เลือกปีการศึกษา - มหาลัยเทคโนโลยีราชมงคลรัตนโกสินทร์</title>
</head>
<body>
<?php
include("../classes/utilities.php");
include("../config/config.php");
if ($_SESSION['is_login']) {
include("../header.php");
echo '<center>
<table border="0" cellpadding="0" cellpadding="0">';
echo '<tr>';
echo '<td><p>เลือกปีที่ต้องการดูข้อมูล</p></td>';
echo '</tr>';
include("../classes/connectdb.php");
$oDBConn = new DBConnection();
$oDBConn->Connect();
$sql = "SELECT *
FROM academic_years
ORDER BY year DESC";
$result = mysql_query($sql);
if(mysql_num_rows($result) > 0) { // if this account is valid
switch ($_SESSION['id_security']) {
case 'A':
$param = "home.php?";
break;
case 'T':
switch ($_SESSION['id_position']) {
case 'D':
$param = "departments-list.php?";
break;
case 'H':
$param = "department-detail.php?id_faculty=".$_SESSION['id_faculty']."&id_department=".$_SESSION['id_department']."&";
break;
case 'R':
$param = "myteaching-list.php?";
break;
}
break;
}
while ($data = mysql_fetch_object($result)) { // get first row result as object
echo "<tr>";
echo "<td>";
echo '<a href="'.$param.'semester='.$data->semester.'&year='.$data->year.'"> เทอมที่ '.$data->semester." ปีการศึกษา ".$data->year."</a>";
echo "</td>";
echo "</tr>";
}
}
$oDBConn->Disconnect();
echo '</table>
</center>';
} else {
SendError_NotLogIn();
}
?>
</body>
</html>
Warning: Cannot modify header information - headers already sent by (output started at C:\AppServ\www\evaluation\authen.php:7) in C:\AppServ\www\evaluation\authen.php on line 57