pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Gregory Holston <holston@itd.nrl.navy.mil>
To: Eric McKeown <ericm@palaver.net>
Cc: pgsql-sql@hub.org
Subject: Re: [SQL] booleans
Date: Wed, 30 Dec 1998 09:22:12 -0500 (EST)
Message-ID: <Pine.SUN.3.91.981229174732.16696A-100000@shell> (raw)
In-Reply-To: <Pine.LNX.3.96.981229174421.23082A-100000@farout.palaver.net>


I wouldn't think it would have any problem handling this code either,
code I used was :
if( $id ) {
        pg_Exec($conn, "INSERT into authors
        values ('$pubrelease', '$id', '$first');");
        }
First was the variable where the boolean, t or f was to be placed in the 
HTML form.  I did not put quotes insert them with quotes for this is 
already done with the PHP.  This works for int, text, etc. hich was why I 
was surprised by the error message.

-Greg





view thread (5+ messages)

Message-ID: <Pine.SUN.3.91.981229174732.16696A-100000@shell>
Permalink:  ../Pine.SUN.3.91.981229174732.16696A-100000@shell/
Also on:    postgresql.org/message-id/Pine.SUN.3.91.981229174732.16696A-100000@shell

 · 

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: holston@itd.nrl.navy.mil, ericm@palaver.net, pgsql-sql@hub.org
  Subject: Re: [SQL] booleans
  In-Reply-To: <Pine.SUN.3.91.981229174732.16696A-100000@shell>
  References: <Pine.LNX.3.96.981229174421.23082A-100000@farout.palaver.net> <Pine.SUN.3.91.981229174732.16696A-100000@shell>

* 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