Re: error messages (not valid postgresql link resoucre)

From: Holger Marzen <holger(at)marzen(dot)de>
To: Robert Morgan <robert_(at)ihug(dot)co(dot)nz>
Cc: pqsl-general(at)postgresql(dot)org, pgsql-general(at)postgresql(dot)org
Subject: Re: error messages (not valid postgresql link resoucre)
Date: 2004-05-17 18:10:52
Message-ID: Pine.LNX.4.58.0405172008480.11963@bluebell.marzen.de
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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);

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Ed L. 2004-05-17 18:14:11 Re: Identifying diskspace leakage
Previous Message Jeff 2004-05-17 17:47:27 Re: dbmirror