⚝
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
/
view
/
Edit File: index1.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']; // Update query $sql = "UPDATE caigou SET aname=?, amountss=?, bname=?, cname=?, remark=? WHERE id=?"; $stmt = $conn->prepare($sql); if ($stmt === false) { die("Error preparing statement: " . $conn->error); } if (!$stmt->bind_param("sssssi", $aname, $amountss, $bname, $cname, $remark, $id)) { die("Error binding parameters: " . $stmt->error); } if ($stmt->execute()) { echo "Data updated successfully"; header("Location: index.php"); } 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."); } ?>
Validation | Expodash - Admin & Dashboard Template
Validation
首页
删除
修改数据
删除
修改数据
产品名称
数量
品牌名称
公司名称
备注
提交修改
Simpan