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:
wich is not working. What am I doing wrong, it is only a problem on the
array, single variables works.
Kelvin :-)
---------------------------(end of broadcast)---------------------------
TIP 4: Don't 'kill -9' the postmaster
Re: Arrays and PHP 4.2
am 10.11.2002 19:42:07 von Cornelia Boenigk
Hi Kelvin
You should serialize the Array then you can send it as string.
See the php-documentation for
serialize()
unserialize()
regards
Conni
---------------------------(end of broadcast)---------------------------
TIP 1: subscribe and unsubscribe commands go to majordomo@postgresql.org
Re: Arrays and PHP 4.2
am 10.11.2002 23:42:20 von Andrew McMillan
On Mon, 2002-11-11 at 05:50, Kelvin Varst wrote:
> Hi,
>
> 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.