X-Original-To: pgsql-php-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id ACB1D5E46DD for ; Sun, 15 Aug 2004 14:28:58 -0300 (ADT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 40595-04 for ; Sun, 15 Aug 2004 17:28:53 +0000 (GMT) Received: from fed1rmmtao09.cox.net (fed1rmmtao09.cox.net [68.230.241.30]) by svr1.postgresql.org (Postfix) with ESMTP id 71E415E46D7 for ; Sun, 15 Aug 2004 14:28:52 -0300 (ADT) Received: from [68.12.228.23] by fed1rmmtao09.cox.net (InterMail vM.6.01.03.02.01 201-2131-111-104-103-20040709) with ESMTP id <20040815172851.TUYN2559.fed1rmmtao09.cox.net@[68.12.228.23]>; Sun, 15 Aug 2004 13:28:51 -0400 Subject: Re: How to create a new Table in prostgresql from a From: Steve Bergman To: Michelle Konzack Cc: pgsql-php In-Reply-To: <20040814151530.GC28829@freenet.de> References: <20040814151530.GC28829@freenet.de> Content-Type: multipart/mixed; boundary="=-P7Ziq5bpi5UDBoDgZls0" Date: Sun, 15 Aug 2004 12:28:50 -0500 Message-Id: <1092590930.10248.5.camel@voyager.localdomain> Mime-Version: 1.0 X-Mailer: Evolution 1.5.92.2 (1.5.92.2-2) X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.0 tagged_above=0.0 required=5.0 tests= X-Spam-Level: X-Archive-Number: 200408/24 X-Sequence-Number: 2912 --=-P7Ziq5bpi5UDBoDgZls0 Content-Type: text/plain Content-Transfer-Encoding: 7bit On Sat, 2004-08-14 at 17:15 +0200, Michelle Konzack wrote: > Hello, > > Never I have done this before (no need) but now I nee to create a > new table with some colums from a Webinterface and do not know how > to do that. > > Please can anyone point me into the right direction ? Are you looking for something like this? I just knocked this out, so I'm sure ther are syntax errors and whatnot, but it should give you an idea. Oh, and are mime attachments considered OK on this list? If not, my apologies. -Steve --=-P7Ziq5bpi5UDBoDgZls0 Content-Disposition: attachment; filename=create_table.php Content-Type: application/x-php; name=create_table.php Content-Transfer-Encoding: 7bit --=-P7Ziq5bpi5UDBoDgZls0 Content-Disposition: attachment; filename=webform.php Content-Type: application/x-php; name=webform.php Content-Transfer-Encoding: 7bit "; $pageStr .= <<
EOT; echo $pageStr; ?> --=-P7Ziq5bpi5UDBoDgZls0--