为什么pg_query不起作用?

时间:2013-10-22 18:38:50

标签: php html database encoding sql-insert

现在,我有这个代码用于插入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}'但是没有成功:/ 一切都好看,我绝望了!

0 个答案:

没有答案