RE: [PHP] session var puzzle

2004-04-18 Thread Larry Brown
In the last pair of examples where it fails, you know you are first assigning the value of $Data['ID'] to the $_SESSION['CategoryID'] and the over-writing that value with the value of intval($Data['ID'])? Why are you assigning $Data['ID'] to it if you are going to overwrite it? If those other tes

Re: [PHP] session var puzzle

2004-04-18 Thread Tom Rogers
Hi, Monday, April 19, 2004, 8:46:02 AM, you wrote: KB> Dear list, KB> I am sorry for the second posting, but this is going KB> to drive me to drink something other than lattes! KB> I have one page, index.php. when it calls mod_sub, a KB> directory type of page is printed. Here I am trying KB>

Re: [PHP] session var puzzle

2004-04-18 Thread Richard Harb
Hi, As I have no idea what those var contain .. what does a print_r() of it give you? print it right when you assign it to the session var to check if it actually contains a value. like: print_r($Data['ID']); and maybe even print_r(intval($Data['ID'])); I suspect that this $Data['ID'] is empty