Re: PostgreSQL+PHP+Win98

From: "Cornelia Boenigk" <poppcorn(at)cornelia-boenigk(dot)de>
To: "PG+PHP" <pgsql-php(at)postgresql(dot)org>
Subject: Re: PostgreSQL+PHP+Win98
Date: 2002-04-12 10:30:09
Message-ID: 001101c1e20d$4a733140$aec1fea9@zwerg98
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-php

Hi Simeo

You helped me to find the fault - it is working now;-)

I haven't set all connection options. It seems that PostgreSQL needs a
nearly complete connection string when running under Windows while
running under Linux it only needs the name of the database.

> It would be a nice idea to put the content of line 19 ;-))
Yes, you are right, sorry.

$host = "localhost";
$port = "5432";
$user = "zwerg98";
$password = "";
$dbname = "mz";

// eine Verbindung zum Datenbankserver aufbauen
$conn = pg_connect("dbname=$dbname user=$user port=$port host=$host");
<-- Line 19

Regards
Conni

In response to

Browse pgsql-php by date

  From Date Subject
Next Message Miguel Carvalho 2002-04-16 23:21:32 PHP die but PG doesnt have roolbacked the transaction
Previous Message Simeo Reig 2002-04-12 00:06:40 Re: PostgreSQL+PHP+Win98