帮我看看一下的程序错在哪里,谢谢!

marlantz marlantz 墨衍会员 · AI 创作全网分发 墨衍智能分发 通过墨衍一键同步至各平台 可同步平台 CSDN微信公众号微博知乎掘金百家号博客园抖音小红书 你的文章也可以这样分发 墨衍会员 ¥399起/年,写一次发全网 我也要 + 加入社区
<html>
<head>
<title>在线投票!</title>
</head>
<body bgcolor="#0099FF" text="#666666">
<div align="center">
<form action="12.php" method="get" name="form">
<table width="75%" border="0" cellspacing="1" bgcolor="#FFFF00">
<tr bgcolor="#0099FF" align="center" valign="middle">
<td width="20%" height="30">添加投票项目</td>
<td width="65%" height="30">
<input type="text" name="item0" size="50%">
</td>
<td width="15%" height="30">
<input type="submit" name="Submit" value="添加">
</td>
</tr>
</table>
</form>
<br>
<table width="75%" border="0" cellspacing="1" bgcolor="#FFFF00" cellpadding="1">
<tr bgcolor="#0099FF" valign="bottom">
<td align="center" height="17"> 调查项目 </td>
<td align="center" height="17">开始时间 </td>
<td align="center" height="17"> 投票 </td>
</tr>
<?
$connect=mysql_connect('localhost','12','************'); //连接数据库
$select=mysql_select_db('name',$connect); //选择数据库
$query=mysql_query('select * from vote',$connect); //取出数据库
while ($array=mysql_fetch_array($query))
{printf("<tr bgcolor="#0099FF" valign="bottom"><td align="center" height="17">%s</td><td align="center" height="17">%s</td><td align="center" height="17">%s</td></tr>",$array[item],$array[time],$array[ballot]);}
?>
</table>
</div>
</body>
</html>
运行是程序提示我“Parse error: parse error in C:\apache\htdocs\try\ivote\7.php on line 34
”就是“</table>”请问该怎么改?
...全文
评论 5
收藏 已收藏
分享
返回顶部
marlantz
基础编程 21,889 成员 140,329 内容