Received: from localhost (postgresql.org [64.49.215.8]) by postgresql.org (Postfix) with ESMTP id C4D30475FFC for ; Sun, 10 Nov 2002 11:46:12 -0500 (EST) Received: from mail4.wannafind.dk (unknown [80.196.101.186]) by postgresql.org (Postfix) with ESMTP id B9E03475F22 for ; Sun, 10 Nov 2002 11:46:11 -0500 (EST) Received: from [62.242.82.231] by mail4.wannafind.dk with SmartMax MailMax for pgsql-php@postgresql.org at Sun, 10 Nov 2002 17:46:11 +0100 Message-ID: <1036946771.8687@mail4.wannafind.dk> From: "Kelvin Varst" To: "Postgresql PHP" Subject: Arrays and PHP 4.2 Date: Sun, 10 Nov 2002 17:50:55 +0100 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook IMO, Build 9.0.2416 (9.0.2910.0) Importance: Normal X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 X-Virus-Scanned: by AMaViS new-20020517 X-Archive-Number: 200211/45 X-Sequence-Number: 1627 Hi, I have an old site that I upgrade to PHP 4.2, with the new way of tranfering variables to the next page. It all almost works them i replace $id with $_GET[id]. But on one page I use an array (new[]), and that worked ok, like: In a for-loop print "$temp . "\" size=\"64\" maxlength=\"" . $name->kolonne_bredde . "\" />"; then I send the array new[] to the next page, and access the data like: In a for-loop $temp = $temp . ", {$names[$n]} = '" . $new[$n] . "'"; wich is building a string to a Postgres query, then it worked on PHP 4.1. I have changed the line to: $temp = $temp . ", {$names[$n]} = '" . $_GET[new[$n]] . "'"; wich is not working. What am I doing wrong, it is only a problem on the array, single variables works. Kelvin :-)