Re: [PHP] Re: SESSION array problems

2008-10-03 Thread Nathan Rixham
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; $

Re: [PHP] Re: SESSION array problems

2008-10-02 Thread Micah Gersten
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

Re: [PHP] Re: SESSION array problems

2008-10-02 Thread tedd
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

Re: [PHP] Re: SESSION array problems

2008-10-02 Thread Micah Gersten
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"; } >>>

Re: [PHP] Re: SESSION array problems UPDATE

2008-10-02 Thread Nathan Rixham
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

Re: [PHP] Re: SESSION array problems UPDATE

2008-10-02 Thread Jim Lucas
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.. >>> >

Re: [PHP] Re: SESSION array problems UPDATE

2008-10-02 Thread Jim Lucas
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

Re: [PHP] Re: SESSION array problems UPDATE

2008-10-02 Thread Afan Pasalic
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 >> >

Re: [PHP] Re: SESSION array problems UPDATE

2008-10-02 Thread Thiago H. Pojda
>>> >>> 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

Re: [PHP] Re: SESSION array problems UPDATE

2008-10-02 Thread Jay Moore
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

Re: [PHP] Re: SESSION array problems UPDATE

2008-10-02 Thread Jay Moore
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

Re: [PHP] Re: SESSION array problems UPDATE

2008-10-02 Thread Andrew Ballard
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

[PHP] Re: SESSION array problems UPDATE

2008-10-02 Thread tedd
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

Re: [PHP] Re: SESSION array problems

2008-10-01 Thread Nathan Rixham
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

[PHP] Re: SESSION array problems

2008-10-01 Thread Nathan Rixham
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

[PHP] Re: SESSION array problems

2008-10-01 Thread Nathan Rixham
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] =>

[PHP] Re: SESSION array problems

2008-10-01 Thread tedd
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

[PHP] Re: SESSION array problems

2008-10-01 Thread tedd
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 (

[PHP] Re: SESSION array problems

2008-10-01 Thread Shawn McKenzie
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] =>

Re: [PHP] Re: SESSION array problems

2008-10-01 Thread Afan Pasalic
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

Re: [PHP] Re: SESSION array problems

2008-10-01 Thread Ashley Sheridan
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,

[PHP] Re: SESSION array problems

2008-10-01 Thread Shawn McKenzie
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

[PHP] Re: SESSION array problems

2008-10-01 Thread tedd
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

[PHP] Re: SESSION array problems

2008-10-01 Thread Jay Moore
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] =>