pg.ddx.io  pgsql-php@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: angelo.rigo@globo.com
To: pgsql-php@postgresql.org
Subject: results from a opinion form
Date: Mon, 17 Jun 2002 15:26:50 -0300
Message-ID: <3D05397800021FCD@nplex.globo.com> (raw)

Hi

I am working on a web form for, where i have 12 fields asking to enumerate
to 5 to 1 to avaliate the weigth that feature have to people choose my company.
I have choosed the data type to be a smallint on postgresql and a input
type text on html (php).

And still i have 5 fields to indicate wich media the people have contact
and helps or not wich i decide to be char on postgresql and input type checkbox
on php where true is 1.

How can i count take statistics and print in  a php page from this form
i try  the following:
SELECT count(metodo) FROM pesquisa where serie= 'a' || 'A' having '5'"

thios give me the error;
Warning: PostgreSQL query failed: ERROR: WHERE clause must return type bool,
not type unknown in /var/www/html/pesquisa/mnivela_teste.php on line 21
ERROR

 



________________________________________
A busca mais veloz e precisa da internet. Acesse agora: http://www.zoom.com.br.




view thread (2+ messages)  latest in thread

Message-ID: <3D05397800021FCD@nplex.globo.com>
Permalink:  ../3D05397800021FCD@nplex.globo.com/
Also on:    postgresql.org/message-id/3D05397800021FCD@nplex.globo.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-php@postgresql.org
  Cc: angelo.rigo@globo.com
  Subject: Re: results from a opinion form
  In-Reply-To: <3D05397800021FCD@nplex.globo.com>
  References: <3D05397800021FCD@nplex.globo.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