<?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>";
}
?>
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>";
}
?>
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货