Addgroup.php 686 B

12345678910111213141516
  1. <?php
  2. $group_name = $_POST['group_name'];
  3. $group_portion = $_POST['group_portion'];
  4. $group_crtime = $_POST['group_crtime'];
  5. $group_uptime = $_POST['group_crtime'];
  6. include_once("../../untils/conn.php");
  7. if ($con) {
  8. mysqli_query($con, "set names utf8");
  9. $data = mysqli_query($con, "insert into proxy_group(group_name,group_portion,group_crtime,group_uptime) values('$group_name','$group_portion','$group_crtime','$group_uptime')");
  10. if ($data) {
  11. echo ("<script>alert('添加信息成功')</script>");
  12. echo ("<script>window.location.href='../group.php'</script>");
  13. } else {
  14. echo ("<script>alert('添加失败,请输入全部数据');history.back();</script>");
  15. }
  16. }