📄 courseselect.php.bak
字号:
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>选课</title>
</head>
<body>
<table width="800" border="0">
<tr>
<td width="75">课程号</td>
<td width="200">课程名</td>
<td width="100">教师姓名</td>
<td width="200">上课时间</td>
<td width="200">地点</td>
<td width="100">学分 </td>
</tr>
<?php
session_start();
include("config.php");
$stuid=$HTTP_SESSION_VARS[studentid];
$query = "Select count(*) as dd from selected where Stu_id ='$stuid'";
$result = mysql_query($query);
list($dd)=mysql_fetch_array($result);
$query1 = "Select Course_id as dd from selected where Stu_id ='$stuid'";
$result1 = mysql_query($query1);
for($i=0;$i<$dd;$i++) {
list($Courseid)=mysql_fetch_array($result1);
$query = "Select * from info_course where Course_id = '$Courseid'";
$result = mysql_query($query); list($Course_id,$Course_name,$Teacher_name,$Teacher_id,$CollectedMan,$Capacity,$Course_time,$Course_place,$credit)=mysql_fetch_array($result);
echo "<tr bgcolor=\"#CCFF99\"><td>".$Course_id."</td><td>".$Course_name." </td><td>".$Teacher_name. "</td><td>".$Course_time ."</td><td>".$Course_place."</td><td>".$credit."</td>";
}
?>
</table>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -