Connecting with Postgres
Connecting with Postgres
Following code snippet connect PHP Grid with Postgres.
$db_conf = array();
$db_conf["type"] = "postgres"; // mysql,oci8(for oracle),mssql,postgres,sybase
$db_conf["server"] = "localhost";
$db_conf["user"] = "postgres";
$db_conf["password"] = "abcd";
$db_conf["database"] = "testdb"
$g = new jqgrid($db_conf);
Resources
- Sample Code
- You can check this demo in archive
demos/loading/db-layer-pgsql.php