Re: PostgreSQL+PHP+Win98 - Mailing list pgsql-php

From Cornelia Boenigk
Subject Re: PostgreSQL+PHP+Win98
Date
Msg-id 001101c1e20d$4a733140$aec1fea9@zwerg98
Whole thread Raw
In response to PostgreSQL+PHP+Win98  ("Cornelia Boenigk" <poppcorn@cornelia-boenigk.de>)
List 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



pgsql-php by date:

Previous
From: Boris Köster
Date:
Subject: Re: Content management in PHP + PostgreSQL
Next
From: "Miguel Carvalho"
Date:
Subject: PHP die but PG doesnt have roolbacked the transaction