large object problem

From: Date: Sun, 16 Dec 2001 21:30:12 +0000
Subject: large object problem
Groups: php.general 
Request: Send a blank email to php-general+get-77884@lists.php.net to get a copy of this message
Hi all, I am trying to findout what is wrong with this script can anyone help? $dbconn = pg_connect ("cnnection string") or die ( "Error: ".pg_errormessage ($dbconn)) ; pg_exec ($dbconn, "begin") ; $oid = pg_locreate ($dbconn) ; $fd = pg_loopen ($dbconn, $oid, "w") ; pg_lowrite ( $fd, $img ) ; pg_loclose ( $fd ) ; $strqry = "INSERT INTO tblImg ( myname, mytype, myimg, myfilesize ) VALUES ( '$img_name', '$img_type', '$oid', $img_size )"; $result = pg_exec ( $dbconn, $strqry ) ; pg_exec ($dbconn, "commit") ; pg_exec ($dbconn, "end") ; The output that I am getting is this /tmp/phpQPUyx2 by pg_loreadall function. Thanks, David __________________________________________________ Do You Yahoo!? Check out Yahoo! Shopping and Yahoo! Auctions for all of your unique holiday gifts! Buy at http://shopping.yahoo.com or bid at http://auctions.yahoo.com

« previous php.general (#77884) next »