<?
$con=mysql_connect("127.0.0.1,root,root");
mysql_select_db("datebase");//datebase 数据库名
$str=$_POST['name'];
$sql="select * from date_log where Number=$str";//date_log 数据表名
$query=mysql_query($sql,$con)
while($row=mysql_fetch_array($query))
  {
   echo $row['level'];
   }
echo 自定义字符串?>
程序运行后错误提示:Parse error: syntax error, unexpected T_WHILE in D:\www\1.php on line 7表单提交Html代码:
<html>
<body><form action="1.php" method="post">
name: <input type="text" name="name" />
<input type="submit" />
</form></body>
</html>