显示老师 select teacher from course where cno='$number
' 显示学分 select credit from course where cno='$number'
显示上课地点 select address from course where cno='$number' 显示上课时间 select time from course where cno='$number'
退选功能的实现:
退选是对SC表进行操作,读取到sno 和cno,cno和sno是SC表的主键
删除相应的课程 delete from sc where sno='$sno' and cno='$cno'
3、课程的查询选择
同样的利用得到的cno将所有的course表中的信息利用五个函数显示出来
选择的选择的操作,session得到的sno和对应的cno,再对数据库进行插入操作
SC表对应的是三个字段,sno、cno和cord字段,cord是分数字段,因为开始选课的并没有分数,就将其设置为空值插入一条选课记录的时候没有cord的数据就得将sno和cno在表中标注出来。
4、个人信息的修改