最新下载
热门教程
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
php An error occured
时间:2022-07-02 10:38:14 编辑:袖梨 来源:一聚教程网
function install_postgresql($name, $mail, $title, $content){
$pgsql_conn = pg_connect("host=localhost port=5432 dbname=book user=vi");
if (!$pgsql_conn) {
echo "connect database error.n";
exit;
}
$result = pg_query($pgsql_conn, "INSTER INTO topic (man, mail, title, content) VALUES ('$name', '$mail', '$title', '$content');");
if(!$result){
echo "An error occured.n";
exit;
}
pg_close($pgsql_conn);
}
?>
注要是你在sql后面加了;号,去了就行了,
相关文章
- .NET设计模式之UML类图介绍 09-17
- ADO.NET基础知识详解 09-17
- ASP.NET Core M5C中的布局(Layout) 09-17
- 拆解 Pi:10 万 Star 极简 Agent Harness 的设计与架构 09-17
- ASP.NET Core配置和管理Web主机 09-17
- ASP.NETCore中的Options选项模式 09-17