pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Zot O'Connor <zot@ZotConsulting.com>
To: pgsql-sql@hub.org
Subject: Re: Subject: Form making with psql and php.cgi
Date: Wed, 28 Jul 1999 21:31:30 -0700
Message-ID: <379FD922.E3230B9B@ZotConsulting.com> (raw)
References: <199907290300.XAA12294@hub.org>


> Date: Thu, 29 Jul 1999 12:35:58 +1000
> From: "Inform(ñËÕÔÓËÜÎÅÒÇÏ)" <inform@yakute.elektra.ru>
> Subject: Form making with psql and php.cgi
> 
> Hi everybody!
> I use PostgresSQL on Unix with php.cgi.
> So i wanna update some fields in my db.
> These fields contain some words. When i read from db and try to put in
> my WWW-form it places only first word of the field.
> What should i do?
> 

It sounds like you are taking a sentence and are only parse the first
word.

You form.html should have something like:

<INPUT TYPE=text NAME="sentence" SIZE=60>

Then in the php script you should have

cmd="update tablename VALUES set sentence='$sentence'";
pg_exec($conn, $cmd);

or some such.

-- 
Zot O'Connor

www.ZotConsulting.com
www.WhiteKnightHackers.com



Message-ID: <379FD922.E3230B9B@ZotConsulting.com>
Permalink:  ../379FD922.E3230B9B@ZotConsulting.com/
Also on:    postgresql.org/message-id/379FD922.E3230B9B@ZotConsulting.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-sql@postgresql.org
  Cc: zot@ZotConsulting.com, pgsql-sql@hub.org
  Subject: Re: Subject: Form making with psql and php.cgi
  In-Reply-To: <379FD922.E3230B9B@ZotConsulting.com>
  References: <199907290300.XAA12294@hub.org> <379FD922.E3230B9B@ZotConsulting.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox