PHP Function List
pg_exec doesn't exist. Closest matches:
- pg_execute
- ftp_exec
- pg_select
- exec
- pcntl_exec
- db2_exec
- pg_send_execute
- ssh2_exec
- curl_exec
- pg_delete
- odbc_exec
- hexdec
- pg_prepare
- pg_lo_seek
- shell_exec
- pg_connect
- yp_next
- expect_expectl
- ingres_execute
- ps_rect
Site Search Results
-
It seems that the old pg_exec function does not do what it is expected to. In the doc, it is said that it returns a resource identifier on the successful querry that was send to the backend. It seems to me that it is more than a resource identifier.
-
本函数以前的名字为 pg_exec()。pg_exec() 函数为了兼容性的原因仍然可以使用,但是鼓励用户使用新的名字。 参见 pg_connect(),pg_pconnect(),pg_fetch_array(),pg_fetch_object(),pg_num_rows() 和 pg_affected_rows()。
-
$oid = pg_locreate ($conn); $rs = pg_exec ($conn, "INSERT INTO test(tipo, images) VALUES('A1', $oid);"); $handle = pg_loopen ($conn, $oid, "w"); pg_lowrite ($handle, $buffer); pg_loclose ($handle); pg_exec ($conn, "commit");
-
$conn = pg_connect("host=localhost dbname=whatever"); $result = pg_exec($conn, "select * from table"); while ($row = pg_fetch_array($result)) { echo "data: ".$row["data"]; } Can be a nice little time saver, PHP with MySQL has supported this for a while ...
-
$result = pg_exec ("SELECT field FROM table WHERE field = '$something' "); // Sample of SQL QUERY $fetch = pg_fetch_row ($query_st); // Sample of SQL QUERY pg_close ($connection); // Close this connection
-
$result = pg_query_params("SELECT a.attname, a.attnum, t.typname, a.attlen, a.attnotNULL, a.atthasdef ... $dbconn1 = pg_connect('blah blah', , PGSQL_CONNECT_FORCE_NEW); pg_exec($dbconn1,'create temp table foo as select 'foo' as namecol, 'bar' as valcol');
-
//INSERT FILE INTO DB $fp = fopen($filename,"r"); $buffer = fread($fp,filesize($filename)); fclose($fp); pg_query ($conn, "begin"); $oid = pg_lo_create ($conn); //echo "$oid\n"; $rs = pg_exec($conn,"insert into table(object) values($oid ...
-
Esta função era chamada pg_exec(). pg_exec() ainda está disponível por razões de compatibilidade, mas os usuários são encorajados a usar o novo nome. Veja também pg_connect(), pg_pconnect(), pg_fetch_array(), pg_fetch ...
-
I am not 100% sure in this, but pg_exec() could return 0 as Connection ID. because of that i change some of my code like this: $dbres = pg_exec($SQL); if ($dbres === false){ echo "DB is down"; exit;

Other forms of search
To search the string "pg_exec" using other options, try searching:
- Only the documentation
- Only this mirror
- The entire php.net domain
- pear.php.net
- pecl.php.net
- The Bug DB
- php-general mailing list
- Internals mailing list
- Documentation mailing list
For a quick overview over all documented PHP functions, click here.
