myrow["id"];
$my_array[] = $id;
}
- Original Message -
From: "Petre Agenbag" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, October 30, 2002 4:40 AM
Subject: [PHP] POST-ing or GET-ing an array
> Hi
> I KNOW I'm gonna get flamed, but I can
> -Original Message-
> From: Paul Nicholson [mailto:paul@;dtnicholson.com]
> Sent: 29 October 2002 19:10
> To: Sascha Cunz; Petre Agenbag; [EMAIL PROTECTED]
>
> Hey,
> I think you should be able to serialize and urlencode the
> array and then
> pass that via get/post.post would be a l
> Hey,
> I think you should be able to serialize and urlencode the array and then
> pass that via get/post.post would be a lot better as get is limited to
> so many chars. Something like:
> $sql = "select stuff from my_table";
> $result = mysql_query($sql);
> while ($myrow = mysql_fetch_assoc($
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Hey,
I think you should be able to serialize and urlencode the array and then
pass that via get/post.post would be a lot better as get is limited to so many
chars.
Something like:
$sql = "select stuff from my_table";
$result = mysql_query($sql);
w
ray']);
print_r($myarray);
-Kevin
- Original Message -
From: "Petre Agenbag" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, October 29, 2002 10:40 AM
Subject: [PHP] POST-ing or GET-ing an array
> Hi
> I KNOW I'm gonna get flamed, but I ca
Oops, I forgot to add the $count++ at the end of the while loop, but
that was just an ommission of this post, in my real code, the array is
created fine ( tested it with a print_r($my_array) ).
On Tue, 2002-10-29 at 19:40, Petre Agenbag wrote:
> Hi
> I KNOW I'm gonna get flamed, but I can't find
Hi,
first of all, i would prefer to do this task in a session-variable (less
traffic, less security holes).
But, if you're sure you need to pass the array via an URL, try:
which will result in test.php called with $_GET['ary'] containing:
[0] = '1'
[1] = '2'
If the array contains strings (a
Hi
I KNOW I'm gonna get flamed, but I can't find this anywhere in my books
or in the manual, yet I know I've read it somewhere.
I created an array in a loop as such:
$sql = "select stuff from my_table";
$result = mysql_query($sql);
$count = 0;
while ($myrow = mysql_fetch_assoc($result)) {
8 matches
Mail list logo