am在服务器上设置投诉表单。如果可以的话,我的代码帮助中出现了什么问题?
尝试过
$query="INSERT INTO c_formtb(`division_office`,`date`,`description`,`serial_number`,`user`,`authorised_by`,`problem`,`it_officer`,`diagnosis`)VALUES('$division_office','$date','description','serial_number','user','authorised_by','problem','it_officer','diagnosis')";
<?php$con=mysqli_connect("localhost","root","","complaint db");if (isset($_POST['submit_form'])){$division_office=$_POST['division_office'];$date=$_POST['date'];$description=$_POST['description'];$serial_number=$_POST['serial_number'];$user=$_POST['user'];$authorized_by=$_POST['authorized_by'];$problem=$_POST['problem'];$it_officer=$_POST['it_officer'];$DIAGNOSIS=$_POST['diagnosis'];
$query="INSERT INTO c_form tb(`division_office`,`date`,`description`,`serial_number`,`user`,`authorized_by`,`problem`,`it_officer`,`diagnosis`)VALUES('$division_office','$date','description','serial_number','user','authorized_by','problem','it_officer','diagnosis')";$result=MySQL_query($con,$query);if ($result) {
echo "<script>alert('Submitted')</script>";echo MySQL_error();}}?>
它应该将我的数据插入投诉数据库,但是当我在填写信息后单击“提交”时,没有任何反应,但没有错误消息,但是没有插入数据