|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2001-02-13 11:57 UTC] thies@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Wed Nov 05 05:00:01 2025 UTC |
I've a script running without problems under 4.0.0, using 4.0.x (x > 0) results in the same problem. The connection is established, but when passing it's descriptor as an argument, to any other pgsql function, it warns, that it's no pg connection identifier. The script could look like this: $db = db_connect($db_server_name, $db_server_port, $db_name, $db_user, $db_password); if (!$db) { exit(); } // next line produces the warning $res = db_query($db, "select * from table"); Called funcions are defined in http://wp-klenci.domazlice-net.cz/dp/php/lib/1st_level/pgsql.phps as a simple wrapper to pg functions. Ondrej Svetlik