<?php
ini_set('display_errors', 'on'); error_reporting(E_ALL);
// Create connection
$conn = mysqli_connect('', '', '');
// Check connection
if (!$conn) {
die("Connection failed: " . mysqli_connect_error());
}
$sql = "INSERT INTO `epiz_22092053_feedback` (`Serial_No`, `Cust_name`, `
Cust_email`, `Cust_number`, `Cust_feedback`, `Cust_comments`)
VALUES (?,?,?,?,?,?)";
$stmt = mysqli_prepare($sql);
$stmt->bind_param("sssssd", $_POST['Serial_No'], $_POST['Cust_name'],
$_POST['Cust_email'], $POST['Cust_feedback'], $_POST['Cust_comments'],
$_POST['Cust_number']);
$stmt->execute();
if (mysqli_query($conn, $sql)) {
echo "New record created successfully";
} else {
echo "Error: " . $sql . "<br>" . mysqli_error($conn);
}
mysqli_close($conn);
?>
我已经故意删除了登录详细信息。我想在cpanel上主持这个。我试图从一个似乎工作正常的html页面获取所有数据。