OK, I have been all over the inernet looking for any documentation that is decent on the pg_pconnect. I know what it is, I just have no clue how to use it. I have a phonebook that I'm searching, adding, and updating, but I have 2 different phonebooks, personal and work. I have a main page that you select which phonebook you want and then the value is passed into the connection strings, I want to keep those connection strings open throughout the entire time the user is wanting to use the phonebook. So I know I need pg_pconnect, but when I move to a different page how do I continue to use the same connection child. I'm using:
$conn = pg_pconnect("", "", "", "", "$DB");
where $DB is the selected name. I don't have a pg_close(conn); in the code, so that the connection stays open. Any help is appriceated. BTW, when I just use $conn = pg_Connect("", "", "", "", "$DB"); it works just fine on that one page, I just can get the persistant connection stuff working on different pages. Thanks for your help, sorry if this is confusing, I'm just a little frustrated at the moment.
$conn = pg_pconnect("", "", "", "", "$DB");
where $DB is the selected name. I don't have a pg_close(conn); in the code, so that the connection stays open. Any help is appriceated. BTW, when I just use $conn = pg_Connect("", "", "", "", "$DB"); it works just fine on that one page, I just can get the persistant connection stuff working on different pages. Thanks for your help, sorry if this is confusing, I'm just a little frustrated at the moment.