One Hat Cyber Team
Your IP :
3.145.85.51
Server IP :
50.28.103.30
Server :
Linux host.jcukjv-lwsites.com 4.18.0-553.22.1.el8_10.x86_64 #1 SMP Tue Sep 24 05:16:59 EDT 2024 x86_64
Server Software :
nginx/1.24.0
PHP Version :
8.3.12
Buat File
|
Buat Folder
Eksekusi
Dir :
~
/
www
/
wwwroot
/
sd.electronharmony.com
/
Edit File:
addplans.php
<?php $servername = "localhost"; $username = "t001"; $password = "ZRTsRb6Ycp585AEC"; $dbname = "t001"; // 数据库名称 // 创建连接 $conn = new mysqli($servername, $username, $password, $dbname); // 检查连接 if ($conn->connect_error) { die("连接失败: " . $conn->connect_error); } // 检查是否是表单提交 if ($_SERVER["REQUEST_METHOD"] == "POST") { // 获取表单数据 $monday = $_POST['paname']; $a = $_POST['a']; $tuesday = $_POST['Pbname']; $b = $_POST['b']; $wednesday = $_POST['Pcname']; $c = $_POST['c']; $thursday = $_POST['Pdname']; $d = $_POST['d']; $friday = $_POST['Pename']; $f = $_POST['f']; $saturday = $_POST['Pfname']; $g = $_POST['g']; $sunday = $_POST['Pgname']; $h = $_POST['h']; // SQL 插入语句 $sql = "INSERT INTO week_days (monday,a, tuesday,b, wednesday,c, thursday,d, friday,f, saturday,g, sunday,h) VALUES ('$monday','$a', '$tuesday','$b', '$wednesday','$c', '$thursday','$d', '$friday','$f', '$saturday','$g', '$sunday','$h')"; // 执行SQL语句并检查是否成功 if ($conn->query($sql) === TRUE) { echo "新记录插入成功"; header("Location: works.php"); } else { echo "插入记录时出错: " . $conn->error; } } // 关闭连接 $conn->close(); ?>
Simpan