|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2000-10-20 04:44 UTC] wangii at 21cn dot com
[2001-02-13 12:09 UTC] thies@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Mon Nov 03 12:00:02 2025 UTC |
In order to use posgressql6.5.1,i designed a simple function like this: function sim() {$conn=pg_connect($connoptions); $result=pg_result($conn,"...."); .... pg_freeresult($result); pg_close($conn);} when i use a for() circle to use the function, there's problem. each first time use the funtion, it's ok, but the sencond time, it goes wronglike this: Warning: 1 is not a valid PostgreSQL link resource in .... on line ... and the third time ,It runs well.and the fourth time, mistakes happened again. and so on. I've track the $conn, the resource id are:#1,#1,#7.... When i turned to mysql, thereis no problem. Sorry for my poor english. Regards