作者:mobiledu2502891657 | 来源:互联网 | 2023-05-18 01:57
ImtryingtomakeasimplecontactformwithanSQLitedb.我试图用SQLite数据库创建一个简单的联系表单。WhenIsubmit
Im trying to make a simple contact form with an SQLite db.
我试图用SQLite数据库创建一个简单的联系表单。
When I submit the form this message shows up:
当我提交表单时,此消息显示:
Array ( [title] => Mr [fname] => John [lname] => Smith [email] => john@smith.com [phone] => 0123456789 [message] => test ) E-Mail Sent successfully, we will get back to you soon.Array ( [0] => HY000 [1] => 1 [2] => no such column: test )
It hasn't sent an email or inserted the data into the db file.
它尚未发送电子邮件或将数据插入db文件。
php:
PHP:
exec("INSERT INTO contact (title, fname, lname, email, phone, details) VALUES ('$title', '$fname', '$lname', '$email', '$phone', $message);") or die(print_r($db->errorInfo(), true));
}
}
?>
2 个解决方案