zww23
(zww23)
中级会员
 
一般会员
UID 53813
精华
0
积分 427
帖子 343
金钱 427 喜悦币
威望 0
人脉 0
阅读权限 30
注册 2004-11-24
状态 离线
|
[推荐阅读] PHP+mysql项目外包(南京)
帮你修改了一下,但你的HTML和PHP的基本语法都没有弄清出,你还是需要打好基本攻啊.
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=GB2312"/>
<title>苏州大学数学科学学院</title>
<style type="text/css" media="all">@import "../css/base.css";</style>
</head>
<body>
<?php
$mylink = mysql_connect("localhost","courseuser","123456");
mysql_select_db("courseinfo",$mylink);
$sql = "select * from courseinfo";
$result = mysql_query($sql);
?>
<p align="center"><font color="#00AA00" size="+3" face="方正舒体">
你所查询的课程表如下:</font></p></br>
<table border="2" align="center" cellspacing="3" cellpadding="3" >
<caption align="center">
<?php
echo "$term = $_POST['term']";
echo "$class =$_POST['class']".'课程表';
?>
</caption>
<tr>
<th width="50" ></th>
<th width="120">星期一</th>
<th width="120">星期二</th>
<th width="130">星期三</th>
<th width="130">星期四</th>
<th width="130">星期五</th>
</tr>
<?php
while($myarry = mysql_fetch_array($result))
{
?>
<tr>
<tr>
<td><?php echo $myarry["cname"] ?></tr>
<?php echo $myarry["location"] ?></td>
</table>
</body>
|
|