Re: error messages (not valid postgresql link resoucre) - Mailing list pgsql-general

From Holger Marzen
Subject Re: error messages (not valid postgresql link resoucre)
Date
Msg-id Pine.LNX.4.58.0405172008480.11963@bluebell.marzen.de
Whole thread Raw
In response to error messages (not valid postgresql link resoucre)  (Robert Morgan <robert_@ihug.co.nz>)
List pgsql-general
On Mon, 10 May 2004, Robert Morgan wrote:

> |I'm trying to run a query on a database using php and postgres functions
>
> ||<?php
> db_connect();

You don't set $connstr.

> $stat = pg_exec($connstr,"SELECT WSID from tblWorkstation ");
> while ($row = pg_fetch_rows($stat))
> {
> print("<option> $row[0]</option>");
> }
> ?>

$dblink = pg_connect("dbname=$pg_db user=$pg_userid password=$pg_password")
          or die ("Kein Connect zu DB");

$sql = "DELETE FROM adr where nr = $nr";
$result = pg_exec($dblink, $sql);


pgsql-general by date:

Previous
From: "Ed L."
Date:
Subject: Re: Identifying diskspace leakage
Next
From: Dennis Gearon
Date:
Subject: Re: Is Linux 2.6.5 kernel good enough for production?