1234567891011121314151617181920 |
- <?php
- // $channel_id = $_POST["channel_id"];
- $channel_name = $_POST['channel_name'];
- $channel_type = $_POST['channel_type'];
- $channel_leader = $_POST['channel_leader'];
- $channel_phone = $_POST['channel_phone'];
- $channel_ctime = $_POST['channel_ctime'];
- include_once("../../untils/conn.php");
- if ($con) {
- mysqli_query($con, "set names utf8");
- $data = mysqli_query($con, "insert into channel(channel_name,channel_type,channel_leader,channel_phone,channel_ctime) values('$channel_name','$channel_type','$channel_leader','$channel_phone','$channel_ctime')");
- if ($data) {
- echo ("<script>alert('添加渠道成功')</script>");
- echo ("<script>window.location.href='../channel.php'</script>");
- } else {
- echo ("<script>alert('添加渠道失败');history.back();</script>");
- // echo "Error updating record: " . $con->error;
- }
- }
|