[SOLVED] Re: [PHP] disappearing array?

From: Date: Fri, 21 Sep 2007 12:00:39 +0000
Subject: [SOLVED] Re: [PHP] disappearing array?
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-262331@lists.php.net to get a copy of this message
Found the problem. I had a typo on my conditional statement. if( $fix->ValArray( $_POST['add_order_items'] === -1 ) ) { $errors['add_order_array'] = $erlink; } Should have been: if( $fix->ValArray( $_POST['add_order_items'] ) === -1 ) { $errors['add_order_array'] = $erlink; } My eyes need to be checked or start exercising my fat fingers. Instruct ICC wrote: > Wow this formatted badly. (new hotmail on Safari -- MS made FF not even render well) > > Anyway, are you sure you are reaching the code you want to reach? > Perhaps !== is overkill and maybe even wrong when you should use ==. > > Same with the other === usage? > > Try some > echo "HERE1\n"; > echo "HERE2\n"; > to see if you are getting to the line you expect. Like after that "count(~) !== ". > > _________________________________________________________________ > Gear up for Halo® 3 with free downloads and an exclusive offer. It’s our way of saying > thanks for using Windows Live™. > http://gethalo3gear.com?ocid=SeptemberWLHalo3_WLHMTxt_2

« previous php.general (#262331) next »