现在,我有这个代码用于插入PGSql
$title = pg_escape_string($_POST["title"]);
$view = pg_escape_string($_POST["view"]);
$desc = pg_escape_string($_POST["desc"]);
$insert = pg_query($dbconn,"INSERT INTO product (title, path, description) VALUES('$title','$view','$desc')");
if(!$insert) {
echo 'oops';
}
dbconn正在运行,但是不插入trie put值等'{$var}'
但是没有成功:/
一切都好看,我绝望了!