pg.ddx.io  pgsql-php@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: brew@theMode.com
To: Elijah O. Alcantara <elijah@asti.dost.gov.ph>
Cc: pgsql-php@postgresql.org
Subject: Re: wouldn't insert
Date: Fri, 9 Jul 2004 15:08:12 -0400 (EDT)
Message-ID: <Pine.BSF.4.58.0407091459400.2007@themode.com> (raw)
In-Reply-To: <1089340768.18180.9.camel@Falcon>
References: <1089340768.18180.9.camel@Falcon>


Elijah.....

> There are no errors whatsoever, must be something wrong with the logic
> somewhere...

What I do when I can't find errors is break down the code into
smaller steps and add error checking.

Make the connection and check the return value.

Put together the sql statement and print it.

Query the database and check the return value.

and so forth.....

Check php.net to see some examples of error checking.

On another note, if I'm only working with only one db I just connect once
near the start of the script and then use that connection for the
subsequent calls.

brew

 ==========================================================================
                  Strange Brew   (brew@theMode.com)
     Check out my Musician's Online Database Exchange (The MODE Pages)
                        http://www.TheMode.com
 ==========================================================================




view thread (8+ messages)  latest in thread

Message-ID: <Pine.BSF.4.58.0407091459400.2007@themode.com>
Permalink:  ../Pine.BSF.4.58.0407091459400.2007@themode.com/
Also on:    postgresql.org/message-id/Pine.BSF.4.58.0407091459400.2007@themode.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: brew@theMode.com, elijah@asti.dost.gov.ph
  Subject: Re: wouldn't insert
  In-Reply-To: <Pine.BSF.4.58.0407091459400.2007@themode.com>
  References: <1089340768.18180.9.camel@Falcon> <Pine.BSF.4.58.0407091459400.2007@themode.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