pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: mkkrish@hotmail.com
To: pgsql-bugs@postgresql.org
Subject: BUG #6550: Querry failed while using throung php program.
Date: Thu, 22 Mar 2012 06:00:34 +0000
Message-ID: <E1SAb4c-00036i-Ej@wrigleys.postgresql.org> (raw)

The following bug has been logged on the website:

Bug reference:      6550
Logged by:          M K Krishnan
Email address:      mkkrish@hotmail.com
PostgreSQL version: 9.0.4
Operating system:   Windows 7
Description:        

11Variety One Warning: pg_query(): Query failed: ERROR: syntax error at or
near "and" LINE 1: select * from variety_dir where crop_cd= and variety_cd=1
^ in C:\Program Files
(x86)\PostgreSQL\EnterpriseDB-ApachePhp\apache\www\agrimetnew\variety_upd.php
on line 32 Warning: pg_num_rows() expects parameter 1 to be resource,
boolean given in C:\Program Files
(x86)\PostgreSQL\EnterpriseDB-ApachePhp\apache\www\agrimetnew\variety_upd.php
on line 33 No Record Found .

Query works from SQL Screen. When uses through php it fails.




view thread (2+ messages)  latest in thread

Message-ID: <E1SAb4c-00036i-Ej@wrigleys.postgresql.org>
Permalink:  ../E1SAb4c-00036i-Ej@wrigleys.postgresql.org/
Also on:    postgresql.org/message-id/E1SAb4c-00036i-Ej@wrigleys.postgresql.org

 · 

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-bugs@postgresql.org
  Cc: mkkrish@hotmail.com
  Subject: Re: BUG #6550: Querry failed while using throung php program.
  In-Reply-To: <E1SAb4c-00036i-Ej@wrigleys.postgresql.org>
  References: <E1SAb4c-00036i-Ej@wrigleys.postgresql.org>

* 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