Received: from localhost (maia-2.hub.org [200.46.204.187]) by postgresql.org (Postfix) with ESMTP id CE1109FB34E for ; Sat, 28 Apr 2007 11:50:47 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.187]) (amavisd-maia, port 10024) with ESMTP id 08329-03 for ; Sat, 28 Apr 2007 11:50:34 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey-1.7.4 Received: from a2s5.a2hosting.com (a2s5.a2hosting.com [209.124.50.10]) by postgresql.org (Postfix) with ESMTP id C2E919FB322 for ; Sat, 28 Apr 2007 11:50:44 -0300 (ADT) Received: from adsl-153-114-69.tys.bellsouth.net ([70.153.114.69] helo=[192.168.1.12]) by a2s5.a2hosting.com with esmtpsa (TLSv1:AES128-SHA:128) (Exim 4.63) (envelope-from ) id 1HhoG2-0007Gb-MA; Sat, 28 Apr 2007 10:50:42 -0400 In-Reply-To: <99437.76872.qm@web50303.mail.re2.yahoo.com> References: <99437.76872.qm@web50303.mail.re2.yahoo.com> Mime-Version: 1.0 (Apple Message framework v752.3) Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed Message-Id: Cc: Lista PG-PHP Content-Transfer-Encoding: 7bit From: John DeSoi Subject: Re: select * from table not showing everything Date: Sat, 28 Apr 2007 10:50:38 -0400 To: Richard Dunne X-Mailer: Apple Mail (2.752.3) X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - a2s5.a2hosting.com X-AntiAbuse: Original Domain - postgresql.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - pgedit.com X-Source: X-Source-Args: X-Source-Dir: X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200704/10 X-Sequence-Number: 3787 On Apr 28, 2007, at 10:09 AM, Richard Dunne wrote: > $result=pg_query($connect, "insert into customer values > ('$customer_name', '$customer_address', '$customer_contact_no')"); Are these really the first columns in the customer table? If not, you need to specify the target columns in the insert, e.g. insert into customer (customer_name, customer_address, customer_contact_no) values ('$customer_name', '$customer_address', '$customer_contact_no') Even if these are the first columns, it is not a good idea to leave the column specs out since your code will break if you change the table in an incompatible way. John DeSoi, Ph.D. http://pgedit.com/ Power Tools for PostgreSQL