HTML表单连接到数据库错误显示ob插入PHP文件中的表行代码:
await
错误消息是:
$sql = "INSERT INTO clients_info
(Name,Organisation,Contact,Email,Services_Vertical,Comments) VALUES
("$name","$organisation",$contact,"$email","$service","$comment")";
答案 0 :(得分:1)
正如@sirko所提到的,你的引号不正确。见下文:
<?php
$sql= "INSERT INTO clients_info (Name,Organisation,Contact,Email,Services_Vertical,Comments) VALUES ('".$name."','".$organisation."','".$contact."','".$email."','".$service."','".$comment."')";
?>