<?php
$id=$_GET["id"];
include ("../../mysqlconn.php");$sql=mysql_query ("select * from employees where id = '". $id. "'",$conn);
$result=mysql_fetch_array ($sql);
if ($result!=false)
{
echo $sql;
echo $id;
//echo "<script language='javascript'> alert('此员工档案不存在');history.back();</script>";
}
else{
?><html
xxxxx
</html><?php
}
?>1.include文件肯定存在
2.数据库中明明有数据,我用phpmyadmin进行 SELECT * FROM `employees` WHERE where id=1 是可以得到数据的
3.现在的结果是不能显示 <html 这些代码请问我错在哪里?