d\'oh.
thanks for the extra set of eyes, Allan... how horribly embarrasing can you get. I blame the propane fumes in my office. removing the semicolon worked just fine. yeesh.
oh well, maybe all my problems will be this trivial. 🙂
appreciating the help,
shane.
Allen McGrath wrote:
You are connecting, there\'re things wrong in your code, for instance, this:
if (!($connection=pg_pconnect(\"dbname=test host=localhost user=db\"))); {
should be :
if (!($connection=pg_pconnect(\"dbname=test host=localhost user=db\"))) {
or even more clear:
if (!$connection=pg_pconnect(\"dbname=test host=localhost user=db\")) {
I ran your code and here and connected fine.