现在,我有这个插入到 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}'
但没有成功:/ 一切似乎都很好,我绝望了!