能帮我看看错那了吗?添加失败也显示成功
<?php
include"conn.php";
$mc=$_POST['mc'];
$ms=$_POST['ms'];
$arr=mysql_query("insert into type(typename,typedes)values('$mc','$ms')");
if($arr)
{
echo"<script> alert('添加成功,请继续操作');window.location.href='leibieym.php';</script>";
}
else
{
echo"<script> alert('不能为空');window.location.href='leibieym.php';</script>";
}
?>