Re: [PHP] Problem with is_array() and empty() for $_SESSION...

2003-11-14 Thread Chris Shiflett
--- Scott Fletcher <[EMAIL PROTECTED]> wrote: > One question though, wouldn't it make more sense to have the result be > either as 0 or 1 (or true or false) instead of blank or 1. I first > interpret the blank as something is wrong with the script or functions. I agree that 1 and 0 would be more i

Re: [PHP] Problem with is_array() and empty() for $_SESSION...

2003-11-14 Thread Scott Fletcher
Sorry for the duplicate... MS-Outlook Express returned an error message saying it had socket problem with PHP newsgroup. "Scott Fletcher" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Thanks for jogging my memory. I seem to be so focus on this for a couple of > hours and didn't h

Re: [PHP] Problem with is_array() and empty() for $_SESSION...

2003-11-14 Thread Scott Fletcher
Thanks for jogging my memory. Found the problem, I forgot to increment the column count on the odbc_result so, left the rest of the column off by 1 count when I added 6 columns (odbc_result) to the $_SESSION. How goofy of me! Anyway, I first thought that data returned as blank meant something is

Re: [PHP] Problem with is_array() and empty() for $_SESSION...

2003-11-14 Thread Scott Fletcher
Thanks for jogging my memory. I seem to be so focus on this for a couple of hours and didn't happen to see that I make one minor typo with adding the six $_SESSION data. I assign the odbc_result() to it, so forgot to increment the number on one of them, so the rest after it was off by one. So, it

Re: [PHP] Problem with is_array() and empty() for $_SESSION...

2003-11-14 Thread Chris Shiflett
--- Scott Fletcher <[EMAIL PROTECTED]> wrote: > session_start(); > > print_r($_SESSION); > //This one work because it spitted out datas from previous webpage > > echo (!(is_array($_SESSION))); > //This spitted out result as a blank This is because echo deals with strings. The boolean false is th

[PHP] Problem with is_array() and empty() for $_SESSION...

2003-11-14 Thread Scott Fletcher
Hi Everyone! I'm a little bit baffled by this problem. The sample script below showed that it should work but it doesn't because most of them returned false... --snip-- session_start(); print_r($_SESSION); //This one work because it spitted out datas from previous webpage... echo (!(is_ar