Micah Gersten wrote:
> You really should get up to speed on PHP 5.
Micah Gersten wrote:
I was referring to Nathan's examples which you cut out of the post.
function save_to_session( ) {
global $userids , $first , $last;
$_SESSION['user_id'] = &$userids;
$_SESSION['first_name'] = &$first;
$
I was referring to Nathan's examples which you cut out of the post.
> function save_to_session( ) {
> global $userids , $first , $last;
> $_SESSION['user_id'] = &$userids;
> $_SESSION['first_name'] = &$first;
> $_SESSION['last_name']= &$last;
> }
Thank you,
Micah Gersten
onShore Networks
Inte
At 11:14 AM -0500 10/2/08, Micah Gersten wrote:
You really should get up to speed on PHP 5.
Yeah, I'll be sure to tell me clients that.
Sometimes you don't have a choice -- you have to work with what they got.
Cheers,
tedd
--
---
http://sperling.com http://ancientstones.com http://ea
Nathan Rixham wrote:
> tedd wrote:
>> At 3:41 PM -0400 10/1/08, tedd wrote:
What about:
foreach ($_SESSION['user_id'] as $key => $value)
{
$last = $_SESSION['last_name'][$key];
$first = $_SESSION['first_name'][$key];
echo "$last, $first";
}
>>>
Jim Lucas wrote:
Jim Lucas wrote:
tedd wrote:
At 11:10 PM +0100 10/1/08, Nathan Rixham wrote:
[tested - works]
-snip-
?>
regards! nathan :)
I need to re-address this.. tedd your original code works fine over
here; as does the code I sent you, and the code jay submitted first..
do us a favour
Jim Lucas wrote:
> tedd wrote:
>> At 11:10 PM +0100 10/1/08, Nathan Rixham wrote:
[tested - works]
-snip-
?>
regards! nathan :)
>>> I need to re-address this.. tedd your original code works fine over
>>> here; as does the code I sent you, and the code jay submitted first..
>>>
>
tedd wrote:
> At 11:10 PM +0100 10/1/08, Nathan Rixham wrote:
>>> [tested - works]
>>> -snip-
>>> ?>
>>> regards! nathan :)
>>
>> I need to re-address this.. tedd your original code works fine over
>> here; as does the code I sent you, and the code jay submitted first..
>>
>> do us a favour, copy a
Andrew Ballard wrote:
> On Thu, Oct 2, 2008 at 10:37 AM, tedd <[EMAIL PROTECTED]> wrote:
>
>> To all:
>>
>> The code provided by nathan works for me as well. However, the problem is
>> not easily explained, but I can demonstrate it -- try this:
>>
>> http://www.webbytedd.com/zzz/index.php
>>
>
>>>
>>> Much as it pains me to ask this, you don't have REGISTER_GLOBALS on, do you?
>>>
>>> Jay
>>>
>>> --
>>> PHP General Mailing List (http://www.php.net/)
>>> To unsubscribe, visit: http://www.php.net/unsub.php
>>>
>>
>> It must be. I just ran tedd's example in both scenarios.
>>
>> W
Jay Moore wrote:
tedd wrote:
At 11:10 PM +0100 10/1/08, Nathan Rixham wrote:
[tested - works]
-snip-
?>
regards! nathan :)
I need to re-address this.. tedd your original code works fine over
here; as does the code I sent you, and the code jay submitted first..
do us a favour, copy and past
tedd wrote:
At 11:10 PM +0100 10/1/08, Nathan Rixham wrote:
[tested - works]
-snip-
?>
regards! nathan :)
I need to re-address this.. tedd your original code works fine over
here; as does the code I sent you, and the code jay submitted first..
do us a favour, copy and paste exactly what I j
On Thu, Oct 2, 2008 at 10:37 AM, tedd <[EMAIL PROTECTED]> wrote:
> To all:
>
> The code provided by nathan works for me as well. However, the problem is
> not easily explained, but I can demonstrate it -- try this:
>
> http://www.webbytedd.com/zzz/index.php
>
> * A complete listing of the code foll
At 11:10 PM +0100 10/1/08, Nathan Rixham wrote:
[tested - works]
-snip-
?>
regards! nathan :)
I need to re-address this.. tedd your original code works fine over
here; as does the code I sent you, and the code jay submitted first..
do us a favour, copy and paste exactly what I just handed th
tedd wrote:
At 3:41 PM -0400 10/1/08, tedd wrote:
What about:
foreach ($_SESSION['user_id'] as $key => $value)
{
$last = $_SESSION['last_name'][$key];
$first = $_SESSION['first_name'][$key];
echo "$last, $first";
}
Jay:
Close, it produced:
Array, Array
Array, Array
Array, Array
Nathan Rixham wrote:
tedd wrote:
Hi gang:
Apparently, there's something going on here that I don't understand --
this happens far too often these days.
Here's a print_r($_SESSION); of the session arrays I'm using:
[user_id] => Array
(
[0] => 6156
[1] => 7
tedd wrote:
Hi gang:
Apparently, there's something going on here that I don't understand --
this happens far too often these days.
Here's a print_r($_SESSION); of the session arrays I'm using:
[user_id] => Array
(
[0] => 6156
[1] => 7030
[2] =>
At 3:41 PM -0400 10/1/08, tedd wrote:
What about:
foreach ($_SESSION['user_id'] as $key => $value)
{
$last = $_SESSION['last_name'][$key];
$first = $_SESSION['first_name'][$key];
echo "$last, $first";
}
Jay:
Close, it produced:
Array, Array
Array, Array
Array, Array
At 2:40 PM -0500 10/1/08, Shawn McKenzie wrote:
tedd wrote:
Hi gang:
Apparently, there's something going on here that I don't understand --
this happens far too often these days.
Here's a print_r($_SESSION); of the session arrays I'm using:
[user_id] => Array
(
Shawn McKenzie wrote:
> tedd wrote:
>> Hi gang:
>>
>> Apparently, there's something going on here that I don't understand --
>> this happens far too often these days.
>>
>> Here's a print_r($_SESSION); of the session arrays I'm using:
>>
>> [user_id] => Array
>> (
>> [0] =>
tedd wrote:
>> What about:
>>
>> foreach ($_SESSION['user_id'] as $key => $value)
>> {
>> $last = $_SESSION['last_name'][$key];
>> $first = $_SESSION['first_name'][$key];
>> echo "$last, $first";
>> }
>
> Jay:
>
> Close, it produced:
>
> Array, Array
> Array, Array
> Array, Array
>
> Ch
On Wed, 2008-10-01 at 15:41 -0400, tedd wrote:
> >What about:
> >
> >foreach ($_SESSION['user_id'] as $key => $value)
> >{
> > $last = $_SESSION['last_name'][$key];
> > $first = $_SESSION['first_name'][$key];
> > echo "$last, $first";
> >}
>
> Jay:
>
> Close, it produced:
>
> Array,
tedd wrote:
> Hi gang:
>
> Apparently, there's something going on here that I don't understand --
> this happens far too often these days.
>
> Here's a print_r($_SESSION); of the session arrays I'm using:
>
> [user_id] => Array
> (
> [0] => 6156
> [1] => 7030
What about:
foreach ($_SESSION['user_id'] as $key => $value)
{
$last = $_SESSION['last_name'][$key];
$first = $_SESSION['first_name'][$key];
echo "$last, $first";
}
Jay:
Close, it produced:
Array, Array
Array, Array
Array, Array
Cheers,
tedd
--
---
http://sperlin
tedd wrote:
Hi gang:
Apparently, there's something going on here that I don't understand --
this happens far too often these days.
Here's a print_r($_SESSION); of the session arrays I'm using:
[user_id] => Array
(
[0] => 6156
[1] => 7030
[2] =>
-Original Message-
From: Al [mailto:[EMAIL PROTECTED]
Sent: 10 March 2008 18:23
To: php-general@lists.php.net
Subject: [PHP] Re: SESSION Array problem - possibly different PHP versions?
Put a print_r($_SESSION) at the top and bottom of your page code so you can
see
what's happ
Put a print_r($_SESSION) at the top and bottom of your page code so you can see
what's happening.
Also check your code that updates the session assignment by the GET value. It
appears your code maybe unset()ing the session assignments.
Are you using Cookies? If so, check this code carefully
every time you run mainpage.php, the array is being reinitialised. Lose the
line "$myArray=array();".
Tim Ward
Senior Systems Engineer
Please refer to the following disclaimer in respect of this message:
http://www.stivesdirect.com/e-mail-disclaimer.html
> -Original Message
27 matches
Mail list logo